feat(*.liquid): apply prettier to liquid templates
- offer to create tag when none is found while adding a link from cli - fix tag display in search
This commit is contained in:
parent
49e21d574e
commit
efe701f939
112 changed files with 1319 additions and 1134 deletions
|
@ -1,8 +1,8 @@
|
|||
{%- assign categoryUrl = link.permalink | downcase -%}
|
||||
{%- assign isHttp = categoryUrl contains "http" -%}
|
||||
{%- assign url = page.activeUrl | default:page.url -%}
|
||||
{%- assign url = page.activeUrl | default: page.url -%}
|
||||
{%- if categoryUrl | isLinkActive:url -%}
|
||||
{%- capture linkClass -%}
|
||||
{%- capture linkClass -%}
|
||||
{%- if link.section -%}button{%- endif -%}
|
||||
{%- if link.icon -%}icon{%- endif -%}
|
||||
{%- endcapture -%}
|
||||
|
@ -21,7 +21,9 @@
|
|||
<a
|
||||
class="{% if link.section %}{{ link.section | downcase }} button {% endif %}{% if link.icon %}{{ link.icon | downcase }} icon {% endif %}"
|
||||
href="{{ categoryUrl }}"
|
||||
{% if isHttp -%} rel="me" {%- endif %}
|
||||
{% if isHttp -%}
|
||||
rel="me"
|
||||
{%- endif %}
|
||||
title="{{ link.title }}"
|
||||
aria-label="{{ link.title }}"
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue