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 isHttp = categoryUrl contains "http" -%}
|
||||
{%- if categoryUrl | isLinkActive: page.url -%}
|
||||
<span class="active {{ class }}" aria-current="page">
|
||||
{%- if icon -%}
|
||||
|
@ -9,7 +10,7 @@
|
|||
{%- endif -%}
|
||||
</span>
|
||||
{%- 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 -%}
|
||||
{% tablericon icon %}
|
||||
<span>{{ title }}</span>
|
||||
|
|
Reference in a new issue