chore: conditional rel=me

This commit is contained in:
Cory Dransfeldt 2024-10-03 16:43:14 -07:00
parent 28fe4b21f2
commit b9fb282263
No known key found for this signature in database

View file

@ -1,4 +1,5 @@
{%- assign categoryUrl = url | downcase -%} {%- assign categoryUrl = url | downcase -%}
{%- assign isHttp = categoryUrl contains "http" -%}
{%- if categoryUrl | isLinkActive: page.url -%} {%- if categoryUrl | isLinkActive: page.url -%}
<span class="active {{ class }}" aria-current="page"> <span class="active {{ class }}" aria-current="page">
{%- if icon -%} {%- if icon -%}
@ -9,7 +10,7 @@
{%- endif -%} {%- endif -%}
</span> </span>
{%- else -%} {%- else -%}
<a class="{% if icon %}{{ icon | downcase }} icon {% endif %}{{ class }}" href="{{ categoryUrl }}" rel="me" aria-label="{{ title }}"> <a class="{% if icon %}{{ icon | downcase }} icon {% endif %}{{ class }}" href="{{ categoryUrl }}" {%- if isHttp -%} rel="me" {%- endif -%} aria-label="{{ title }}">
{%- if icon -%} {%- if icon -%}
{% tablericon icon %} {% tablericon icon %}
<span>{{ title }}</span> <span>{{ title }}</span>