Skip to content

Commit

Permalink
[feat] dynamically generated header
Browse files Browse the repository at this point in the history
  • Loading branch information
EsseLowNitro authored Dec 18, 2024
1 parent 2b4a612 commit af2e600
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 12 deletions.
17 changes: 5 additions & 12 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,11 @@
<nav id="site-menu">
<ul>
<li {% if include.content == "" %}aria-current="page"{% endif %}><a href="/"><img src="/assets/secureblue.svg" alt=""/>secureblue</a></li>
<li {% if include.content == "code-of-conduct" %}aria-current="page"{% endif %}><a href="/code-of-conduct">Code of conduct</a></li>
<li {% if include.content == "contributing" %}aria-current="page"{% endif %}><a href="/contributing">Contributing</a></li>
<li {% if include.content == "donate" %}aria-current="page"{% endif %}><a href="/donate">Donate</a></li>
<li {% if include.content == "faq" %}aria-current="page"{% endif %}><a href="/faq">FAQ</a></li>
<li {% if include.content == "images" %}aria-current="page"{% endif %}><a href="/images">Images</a></li>
<li {% if include.content == "kargs" %}aria-current="page"{% endif %}><a href="/kargs">kargs</a></li>
<li {% if include.content == "postinstall-readme" %}aria-current="page"{% endif %}><a href="/postinstall-readme">Postinstall Readme</a></li>
<li {% if include.content == "preinstall-readme" %}aria-current="page"{% endif %}><a href="/preinstall-readme">Preinstall Readme</a></li>
<li {% if include.content == "recommended" %}aria-current="page"{% endif %}><a href="/recommended">Recommended</a></li>
<li {% if include.content == "security" %}aria-current="page"{% endif %}><a href="/security">Security</a></li>
<li {% if include.content == "support" %}aria-current="page"{% endif %}><a href="/support">Support</a></li>
<li {% if include.content == "userns" %}aria-current="page"{% endif %}><a href="/userns">userns</a></li>
{% for page in site.pages %}
{% if page.permalink != "/" %}
<li {% if include.content == page.permalink | remove: "/" %}aria-current="page"{% endif %}><a href="{{ page.permalink }}">{{ page.short_title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</nav>
</header>
Expand Down
1 change: 1 addition & 0 deletions content/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Code of Conduct | secureblue"
short_title: "Code of Conduct"
description: "secureblue's Code of Conduct"
permalink: /code-of-conduct
---
Expand Down
1 change: 1 addition & 0 deletions content/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Contributing | secureblue"
short_title: "Contributing"
description: "How to contribute to secureblue"
permalink: /contributing
---
Expand Down
1 change: 1 addition & 0 deletions content/DONATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Donate to secureblue"
short_title: "Donate"
description: "Donation options for secureblue"
permalink: /donate
---
Expand Down
1 change: 1 addition & 0 deletions content/FAQ.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "FAQ | secureblue"
short_title: "FAQ"
description: "Answers to frequently asked questions about secureblue"
permalink: /faq
---
Expand Down
1 change: 1 addition & 0 deletions content/IMAGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Images | secureblue"
short_title: "Images"
description: "List of available secureblue hardened operating system images"
permalink: /images
---
Expand Down
1 change: 1 addition & 0 deletions content/INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Install secureblue"
short_title: "Install"
description: "Steps to install secureblue"
permalink: /install
---
Expand Down
1 change: 1 addition & 0 deletions content/KARGS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "kargs | secureblue"
short_title: "kargs"
description: "An overview of the hardening boot kargs used in secureblue"
permalink: /kargs
---
Expand Down
1 change: 1 addition & 0 deletions content/POSTINSTALL-README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Post-install instructions | secureblue"
short_title: "Post-install"
description: "Instructions meant to be followed succeeding a secureblue rebase"
permalink: /post-install
---
Expand Down
1 change: 1 addition & 0 deletions content/RECOMMENDED.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Recommended DEs | secureblue"
short_title: "Recommended"
description: "Relative recommendation between the desktop environments available on secureblue"
permalink: /recommended
---
Expand Down
1 change: 1 addition & 0 deletions content/SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Security policy | secureblue"
short_title: "Security"
description: "Project security policy"
permalink: /security
---
Expand Down
1 change: 1 addition & 0 deletions content/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Support | secureblue"
short_title: "Support"
description: "Get support with secureblue issues"
permalink: /support
---
Expand Down
1 change: 1 addition & 0 deletions content/USERNS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "userns advice | secureblue"
short_title: "userns"
description: "A small document about unprivileged user namespaces"
permalink: /userns
---
Expand Down

0 comments on commit af2e600

Please sign in to comment.