From ed6292147addf40e4cc12314a698051384c49eb5 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Tue, 10 Oct 2017 23:35:10 +0800 Subject: [PATCH] Have descriptions take precedence over intro's for meta tags --- _includes/values/description.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_includes/values/description.html b/_includes/values/description.html index 4e929deb9..12deb84dc 100644 --- a/_includes/values/description.html +++ b/_includes/values/description.html @@ -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