chore: clean up extra space in documents

This commit is contained in:
Cory Dransfeldt 2024-08-05 11:10:55 -07:00
parent 1bf0e7c3bb
commit 4330f60f32
No known key found for this signature in database
25 changed files with 123 additions and 124 deletions

View file

@ -1,20 +1,20 @@
{%- assign categoryUrl = url | downcase -%}
{% if categoryUrl | isLinkActive: page.url %}
{%- if categoryUrl | isLinkActive: page.url -%}
<span class="active {{ class }}" aria-current="page">
{% if icon %}
{%- if icon -%}
{% tablericon icon title %}
<span>{{ title }}</span>
{% else %}
{%- else -%}
{{ title }}
{% endif %}
{%- endif -%}
</span>
{% else %}
{%- else -%}
<a class="{% if icon %}{{ icon | downcase }} icon {% endif %}{{ class }}" href="{{ categoryUrl }}" tabindex="0">
{% if icon %}
{%- if icon -%}
{% tablericon icon title %}
<span>{{ title }}</span>
{% else %}
{%- else -%}
{{ title }}
{% endif %}
{%- endif -%}
</a>
{% endif %}
{%- endif -%}

View file

@ -1,6 +1,6 @@
{% capture js %}
{%- capture js -%}
{% render "../../../assets/scripts/menu.js" %}
{% endcapture %}
{%- endcapture -%}
<script>{{ js }}</script>
<div class="flex-centered">
<input id="menu-toggle" type="checkbox" aria-hidden="true" />
@ -9,9 +9,9 @@
<div class="menu-open" aria-hidden="true">{% tablericon "x" "Menu open" %}</div>
</label>
<ul class="menu-primary" aria-label="Primary site navigation" id="primary-navigation">
{% for link in nav.primary %}
{%- for link in nav.primary -%}
<li>{% render "partials/nav/link.liquid", page:page, title:link.title, url:link.permalink, icon:link.icon %}</li>
{% endfor %}
{%- endfor -%}
</ul>
{% render "partials/nav/theme-toggle.liquid" %}
</div>

View file

@ -1,22 +1,22 @@
<script type="module" src="/assets/scripts/components/select-pagination.js"></script>
<nav aria-label="Pagination" class="pagination flex-centered">
{% if pagination.href.previous %}
{%- if pagination.href.previous -%}
<a href="{{ pagination.href.previous }}" aria-label="Previous page">
{% tablericon "arrow-left" "Previous" %}
</a>
{% else %}
{%- else -%}
<span
class="disabled"
aria-label="Previous page (disabled)"
disabled>
{% tablericon "arrow-left" "Prevous" %}
</span>
{% endif %}
{%- endif -%}
<select-pagination>
<select class="client-side" aria-label="Page selection">
{% for pageEntry in pagination.pages %}
{%- for pageEntry in pagination.pages -%}
<option value="{{ forloop.index | minus: 1 }}">{{ forloop.index }} of {{ pagination.links.size }}</option>
{% endfor %}
{%- endfor -%}
</select>
<noscript>
<div class="text-centered">
@ -24,16 +24,16 @@
</div>
</noscript>
</select-pagination>
{% if pagination.href.next %}
{%- if pagination.href.next -%}
<a href="{{ pagination.href.next }}" aria-label="Next page">
{% tablericon "arrow-right" "Next" %}
</a>
{% else %}
{%- else -%}
<span
class="disabled"
aria-label="Next page (disabled)"
disabled>
{% tablericon "arrow-right" "Next" %}
</span>
{% endif %}
{%- endif -%}
</nav>