improved the header
This commit is contained in:
parent
29d20f5e58
commit
c1a8eee9ae
2 changed files with 15 additions and 4 deletions
|
@ -1,9 +1,15 @@
|
||||||
<header>
|
<header>
|
||||||
<span class='internal'>
|
<span class='internal'>
|
||||||
{%- if page.title != "Welcome!" -%}<a href='/'>Home</a>{% endif -%}
|
<a href='/' {%- if page.title == "Welcome!" %} class='current'{% endif -%}>Home</a>
|
||||||
{%- if page.title != "Contact" -%}<a href='/contact.html'>Contact</a>{% endif -%}
|
{%- for html_page in site.html_pages -%}
|
||||||
|
{%- unless html_page.url == '/' -%}
|
||||||
|
<a href='{{ html_page.url }}' {%- if page.title == html_page.title %} class='current'{% endif -%}>{{ html_page.title }}</a>
|
||||||
|
{%- endunless -%}
|
||||||
|
{%- endfor -%}
|
||||||
|
|
||||||
|
{%- comment -%} {%- if page.title != "Contact" -%}<a href='/contact.html'>Contact</a>{% endif -%}
|
||||||
{%- if page.title != "Projects" -%}<a href='/projects.html'>Projects</a>{% endif -%}
|
{%- if page.title != "Projects" -%}<a href='/projects.html'>Projects</a>{% endif -%}
|
||||||
{%- if page.title != "Donate" -%}<a href='/donate.html'>Donate</a>{% endif -%}
|
{%- if page.title != "Donate" -%}<a href='/donate.html'>Donate</a>{% endif -%} {%- endcomment -%}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class='external'>
|
<span class='external'>
|
||||||
|
|
|
@ -49,6 +49,11 @@ a {
|
||||||
color: mediumpurple;
|
color: mediumpurple;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
a.current {
|
||||||
|
background: linear-gradient(to bottom, white, #fafafa);
|
||||||
|
color: mediumpurple;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
#projects, #screenshots, .donation-methods {
|
#projects, #screenshots, .donation-methods {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
Loading…
Reference in a new issue