Browse Source

improved the header

master
Lynne Megido 8 months ago
parent
commit
c1a8eee9ae
Signed by: lynnesbian GPG Key ID: F0A184B5213D9F90
2 changed files with 15 additions and 4 deletions
  1. + 10
    - 4
      _includes/header.html
  2. + 5
    - 0
      assets/style.css

+ 10
- 4
_includes/header.html

@ -1,12 +1,18 @@
<header>
<span class='internal'>
{%- if page.title != "Welcome!" -%}<a href='/'>Home</a>{% endif -%}
{%- if page.title != "Contact" -%}<a href='/contact.html'>Contact</a>{% endif -%}
<a href='/' {%- if page.title == "Welcome!" %} class='current'{% endif -%}>Home</a>
{%- 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 != "Donate" -%}<a href='/donate.html'>Donate</a>{% endif -%}
{%- if page.title != "Donate" -%}<a href='/donate.html'>Donate</a>{% endif -%} {%- endcomment -%}
</span>
<span class='external'>
<a href='https://bune.city'>Blog</a><a href='https://github.com/lynnesbian'>GitHub</a><a href='https://git.bune.city/lynnesbian'>Gitea</a>
</span>
</header>
</header>

+ 5
- 0
assets/style.css

@ -49,6 +49,11 @@ a {
color: mediumpurple;
text-decoration: none;
}
a.current {
background: linear-gradient(to bottom, white, #fafafa);
color: mediumpurple;
pointer-events: none;
}
#projects, #screenshots, .donation-methods {
display: flex;

Loading…
Cancel
Save