From 7a04f13ced2f4bc8cca82ccf961ff2f39a4f2098 Mon Sep 17 00:00:00 2001 From: Brandon Rosage Date: Mon, 25 Mar 2019 11:38:28 -0500 Subject: [PATCH] added more og tags; dynamic page title --- _includes/header.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 0288751..d4b9f02 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -11,18 +11,22 @@ {% assign user = site.github.owner %} {% if page.path contains '_posts' %} + {% assign page_title = page.title %} {% assign meta_description = page.content | strip_html | strip_newlines | xml_escape | truncate: 300 %} {% else %} + {% assign page_title = user.name %} {% assign meta_description = user.bio | strip_html | strip_newlines | xml_escape | truncate: 300 %} {% endif %} - + + {{ page_title }} - - {{ user.name }} + + +