forked from deepStateMirrors/tabi
✨ feat(SEO): Add description support for sections (#179)
This commit is contained in:
parent
57dd82c452
commit
fd1c50af11
1 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,9 @@
|
|||
{%- if page.description %}
|
||||
<meta name="description" content="{{ page.description | striptags | safe }}" />
|
||||
<meta property="og:description" content="{{ page.description | striptags | safe }}" />
|
||||
{%- elif section.description %}
|
||||
<meta name="description" content="{{ section.description | striptags | safe }}" />
|
||||
<meta property="og:description" content="{{ section.description | striptags | safe }}" />
|
||||
{%- elif page.summary %}
|
||||
<meta name="description" content="{{ page.summary | striptags | safe | trim_end_matches(pat=".") }}…" />
|
||||
<meta property="og:description" content="{{ page.summary | striptags | safe | trim_end_matches(pat=".") }}…" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue