Modify NavBar

This commit is contained in:
Pau 2022-12-23 00:18:44 +01:00
parent 9fab118375
commit b93e3da93e
4 changed files with 8 additions and 8 deletions

View File

@ -6,7 +6,7 @@ theme = "sophie-lewis"
[params] [params]
#navbar = ["about", "writing", "get-in-touch"] #navbar = ["about", "writing", "get-in-touch"]
navbar = ["about", "writing", "videos", "audio", "events", "get-in-touch"] navbar = ["home", "about", "writing", "videos", "audio", "events", "get-in-touch"]
[params.header] [params.header]
name = "Sophie Lewis" name = "Sophie Lewis"

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,8 @@ hr {
} }
a { a {
padding: 0.5rem 0; padding: 0.5rem 0;
font-size: 1.3rem; font-size: 1rem;
text-decoration: underline;
@media (max-width: 480px) { font-size: 1.1rem; } @media (max-width: 480px) { font-size: 1.1rem; }
color: $text-colour; color: $text-colour;
border-bottom-color: $hr-color; border-bottom-color: $hr-color;
@ -41,7 +42,6 @@ hr {
} }
padding: 0.8rem 0; padding: 0.8rem 0;
.is-active a { .is-active a {
text-decoration: underline;
font-weight: bold; font-weight: bold;
color: $text-colour; color: $text-colour;
border-bottom-color: $hr-color; border-bottom-color: $hr-color;
@ -252,7 +252,7 @@ p {
nav,footer { nav,footer {
font-family: $sans_font; font-family: $sans_font;
font-style: italic; //font-style: italic;
} }
.cv-entry { .cv-entry {

View File

@ -1,5 +1,5 @@
<nav> <nav>
<div class="tabs is-fullwidth nav-tabs is-italic is-uppercase"> <div class="tabs is-fullwidth nav-tabs is-uppercase">
<ul> <ul>
{{ range $nav_tab := site.Params.navbar }} {{ range $nav_tab := site.Params.navbar }}
{{ $nav_title := replace $nav_tab "-" " " | title }} {{ $nav_title := replace $nav_tab "-" " " | title }}
@ -8,7 +8,7 @@
{{ else }} {{ else }}
<li><a href="/{{$nav_tab}}">{{ $nav_title }}</a></li> <li><a href="/{{$nav_tab}}">{{ $nav_title }}</a></li>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{/* <li><a>About</a></li> {{/* <li><a>About</a></li>
<li><a>Writing</a></li> <li><a>Writing</a></li>
@ -16,4 +16,4 @@
<li><a>Get In Touch</a></li> */}} <li><a>Get In Touch</a></li> */}}
</ul> </ul>
</div> </div>
</nav> </nav>