Skip to content

Commit 2b94bb1

Browse files
committed
feat: better inter-blog navigation
1 parent bac1b59 commit 2b94bb1

4 files changed

Lines changed: 14 additions & 0 deletions

File tree

‎archive.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
Core Web Vitals, caching, browser behaviour, and the occasional older CSS
1717
piece.</p>
1818

19+
<ul class="c-nav-secondary" id="section:about">
20+
<li class="c-nav-secondary__item"><a href="/blog/category/" class="c-nav-secondary__link">Categories</a></li>
21+
<li class="c-nav-secondary__item"><a href="/blog/tags/" class="c-nav-secondary__link">Tags</a></li>
22+
</ul>
23+
1924
<p>If you’d rather start somewhere less chronological, try
2025
<a href="{{ site.posts[random].url }}"><cite>{{ site.posts[random].title }}</cite></a>
2126
<small>(<time>{{ site.posts[random].date | date: "%Y" }}</time>)</small>

‎blog.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
Core Web Vitals, caching, browser behaviour, and the occasional older CSS
1616
piece.</p>
1717

18+
<ul class="c-nav-secondary" id="section:about">
19+
<li class="c-nav-secondary__item"><a href="/blog/category/" class="c-nav-secondary__link">Categories</a></li>
20+
<li class="c-nav-secondary__item"><a href="/blog/tags/" class="c-nav-secondary__link">Tags</a></li>
21+
</ul>
22+
1823
<p>If you’d rather start somewhere less chronological, try
1924
<a href="{{ site.posts[random].url }}"><cite>{{ site.posts[random].title }}</cite></a>
2025
<small>(<time>{{ site.posts[random].date | date: "%Y" }}</time>)</small>

‎category/index.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
meta: "Browse by subject: web performance, front-end development, tooling, the business of consulting, and everything else written here."
66
---
77

8+
<p><a href="/blog/">« All posts</a></p>
9+
810
{% assign category_pages = site.pages | where_exp: "item", "item.category" | sort: "category" %}
911
{% assign category_count = category_pages | size %}
1012

‎tag/index.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
meta: "Every subject covered on CSS Wizardry, from Core Web Vitals and caching to CSS, RUM, and the browser internals sitting underneath them."
66
---
77

8+
<p><a href="/blog/">« All posts</a></p>
9+
810
{% assign tag_pages = site.pages | where_exp: "item", "item.tag" | sort: "tag" %}
911
{% assign tag_count = tag_pages | size %}
1012

0 commit comments

Comments
 (0)