✨ feat(SEO): Add description support for sections (#179)
This commit is contained in:
parent
57dd82c452
commit
fd1c50af11
@ -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…
x
Reference in New Issue
Block a user