Skip to content

Commit

Permalink
Update category display
Browse files Browse the repository at this point in the history
  • Loading branch information
harrymkt committed Sep 7, 2024
1 parent 8580b1b commit c38b282
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
12 changes: 2 additions & 10 deletions Source/_includes/header.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,14 @@
<a href="#mainc" class="skip-link">Skip to main content</a>
<a href="#navigation" class="skip-link">Skip to navigation</a>
<a href="#footersection" class="skip-link">Skip to footer</a>
<a href="/search"
{%if permalink=="/search"%}
aria-current="page"
{%endif%}
>Search</a>
<a href="/search"{%if permalink=="/search"%} aria-current="page"{%endif%}>Search</a>
<script>navstart();</script>
<nav id="navigation" role="navigation" aria-label="Main menu">
<h1>Main Menu</h1>
<ul style="list-style-type:none;">
{%if site.data.nav%}
{%for pn in site.data.nav%}
{%if pn.url== permalink%}
<li><a aria-current="page" href="{{pn.url}}">{{pn.name}}</a></li>
{%else%}
<li><a href="{{pn.url}}">{{pn.name}}</a></li>
{%endif%}
<li><a {%if pn.url==permalink%}aria-current="page"{%endif%}href="{{pn.url}}">{{pn.name}}</a></li>
{%endfor%}
{%else%}
<p>No navigation page available.</p>
Expand Down
6 changes: 3 additions & 3 deletions Source/categories.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ title: Categories
permalink: /categories
pagination:
include: Categories
per_page: 1
per_page: 5
permalink_suffix: "./{{num}}/"
order: Desc
sort_by: ["published_date"]
---
{%if paginator.index_title%}# Category: {{paginator.index_title}}{%endif%}
{% if paginator.indexes %}
# {%if paginator.index_title%}Subc{%else%}C{%endif%}ategories, {{paginator.indexes | size}}
# {%if paginator.index_title%}Subc{%else%}C{%endif%}ategories, {{paginator.indexes | size}} items
{% for ptag in paginator.indexes %}
<a href="/{{ ptag.index_permalink }}/">{{ ptag.index_title | last}} ({{ ptag.total_pages }})</a>
<a href="/{{ ptag.index_permalink }}/">{{ ptag.index_title | last}} ({{ ptag.total_pages }} posts)</a>
{% endfor %}
{%endif%}

Expand Down

0 comments on commit c38b282

Please sign in to comment.