Have descriptions take precedence over intro's for meta tags

This commit is contained in:
Rico Sta. Cruz 2017-10-10 23:35:10 +08:00
parent bc801326fc
commit ed6292147a
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
{%
if page.intro
%}{{ page.intro | markdownify | strip_html }}{%
elsif page.description
if page.description
%}{{ page.description }}{%
elsif page.intro
%}{{ page.intro | markdownify | strip_html }}{%
elsif page.type == 'article'
%}One-page reference for {{ page.title }}: usage, examples, links, snippets, and more.{%
else