chore: conditional rel=me
This commit is contained in:
parent
28fe4b21f2
commit
b9fb282263
1 changed files with 2 additions and 1 deletions
|
@ -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>
|
||||||
|
|
Reference in a new issue