diff --git a/_includes/header.html b/_includes/header.html index 77ee9a1..73f38b0 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -10,10 +10,17 @@ {% assign user = site.github.owner %} +{% if page.path contains '_posts' %} + {% assign meta_description = page.content | strip_html | strip_newlines | xml_escape | truncate: 300 %} +{% else %} + {% assign meta_description = user.bio | strip_html | strip_newlines | xml_escape | truncate: 300 %} +{% endif %} + + {{ user.name }}