aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/default.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index 03429a9..94ac1b7 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -12,6 +12,16 @@
<meta name="author" content="{{ site.author.name }}" />
<meta property="og:locale" content="{{ page.lang }}" />
<meta property="og:title" content="{{ page.title | xml_escape }}" />
+ {% capture raw_description %}
+ {% if page.description %}
+ {{ page.description }}
+ {% else %}
+ {{ site.description }}
+ {% endif %}
+ {% endcapture %}
+ {% assign description = raw_description | strip_html | strip %}
+ <meta name="description" content="{{ description }}" />
+ <meta property="og:description" content="{{ description }}" />
<link rel="canonical" href="{{ page.url | absolute_url }}" />
<meta property="og:url" content="{{ page.url | absolute_url }}" />