summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-05-19 10:09:48 -0500
committerToby Vincent <tobyv13@gmail.com>2023-05-19 10:09:48 -0500
commit80f4edd91b227ff5f9cc5800a63657aa617deb79 (patch)
treeb0ec9352873071622abf3cab33accad30e0ea61d
parente5d686fad6c0674e7e8a59820747b98eb6f49394 (diff)
refactor: manually order header nav
-rw-r--r--sass/style.scss2
-rw-r--r--templates/index.html11
2 files changed, 4 insertions, 9 deletions
diff --git a/sass/style.scss b/sass/style.scss
index 565b1a2..1645ee2 100644
--- a/sass/style.scss
+++ b/sass/style.scss
@@ -74,7 +74,7 @@ section {
color: var(--orange);
margin-bottom: 0;
+ * {
- color: var(--orange);
+ color: var(--gray-dim);
margin-top: 0;
}
}
diff --git a/templates/index.html b/templates/index.html
index c7e55b6..8de7317 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -25,14 +25,9 @@
<nav>
<h1>{{ macros::nav_item(name=config.title, url=config.base_url) }}</h1>
<ul>
- {% set root = get_section(path="_index.md") %}
- {% set pages = root.pages | sort(attribute="title") %}
- {% for p in pages %}<li>{{ macros::nav_item(name=p.title,url=p.permalink) }}</li>{% endfor %}
- {% set subsections = root.subsections | sort %}
- {% for p in subsections %}
- {% set s = get_section(path=p) %}
- <li>{{ macros::nav_item(name=s.title,url=s.permalink) }}</li>
- {% endfor %}
+ <li>{{ macros::nav_item(name="Projects",url=get_url(path="@/projects.md") ) }}</li>
+ <li>{{ macros::nav_item(name="Posts",url=get_url(path="@/posts/_index.md") ) }}</li>
+ <li>{{ macros::nav_item(name="About",url=get_url(path="@/about.md") ) }}</li>
</ul>
</nav>
</header>