mirror of
https://github.com/welpo/tabi.git
synced 2026-02-16 08:07:19 +01:00
✨ feat(SEO): Add description support for sections
This commit is contained in:
parent
adf984dcba
commit
e12601a948
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