mirror of
https://github.com/arsenetar/pelican-red.git
synced 2024-11-22 11:19:02 +00:00
Fix typo in base.html
This commit is contained in:
parent
42f8de158e
commit
40727dd042
@ -8,7 +8,7 @@
|
|||||||
{# Get a generic title element #}
|
{# Get a generic title element #}
|
||||||
{% set page_title = article.title if article else page.title if page else category.name if category else tag.name if tag else author.name if author else page_name|title %}
|
{% set page_title = article.title if article else page.title if page else category.name if category else tag.name if tag else author.name if author else page_name|title %}
|
||||||
{# fetch description, tags, author from article, page or CONFIGURATION file #}
|
{# fetch description, tags, author from article, page or CONFIGURATION file #}
|
||||||
{% set page_descrip = article.summary|striptags if article else page.summary|striptags if page else PAGE_DESC[title.lower()]|default(SITE_DESCR) if PAGE_DESC else SITE_DESCR %}
|
{% set page_descrip = article.summary|striptags if article else page.summary|striptags if page else PAGE_DESC[page_title.lower()]|default(SITE_DESCR) if PAGE_DESC else SITE_DESCR %}
|
||||||
{% set page_tags = article.tags|join(', ') if (article and article.tags) else page.tags|join(', ') if (page and page.tags) else SITE_KEY %}
|
{% set page_tags = article.tags|join(', ') if (article and article.tags) else page.tags|join(', ') if (page and page.tags) else SITE_KEY %}
|
||||||
{% set page_author = article.author if article else page.author if page else AUTHOR %}
|
{% set page_author = article.author if article else page.author if page else AUTHOR %}
|
||||||
<meta name="description" itemprop="description" content="{{ page_descrip }}" />
|
<meta name="description" itemprop="description" content="{{ page_descrip }}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user