From c1a8eee9ae4ac70f3fddde9719cff8dd135d423b Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 15 Mar 2020 23:24:58 +1000 Subject: [PATCH] improved the header --- _includes/header.html | 14 ++++++++++---- assets/style.css | 5 +++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 9b7f97b..e34b078 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,12 +1,18 @@
- {%- if page.title != "Welcome!" -%}Home{% endif -%} - {%- if page.title != "Contact" -%}Contact{% endif -%} + Home + {%- for html_page in site.html_pages -%} + {%- unless html_page.url == '/' -%} + {{ html_page.title }} + {%- endunless -%} + {%- endfor -%} + + {%- comment -%} {%- if page.title != "Contact" -%}Contact{% endif -%} {%- if page.title != "Projects" -%}Projects{% endif -%} - {%- if page.title != "Donate" -%}Donate{% endif -%} + {%- if page.title != "Donate" -%}Donate{% endif -%} {%- endcomment -%} BlogGitHubGitea -
\ No newline at end of file + diff --git a/assets/style.css b/assets/style.css index fab40d1..9b4dea9 100644 --- a/assets/style.css +++ b/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;