From 7d7567eac842aa40f888277eb5fc83119cdf3176 Mon Sep 17 00:00:00 2001 From: George <31376482+george-gca@users.noreply.github.com> Date: Wed, 12 Oct 2022 07:02:15 -0300 Subject: [PATCH] Fixed missing year in title when in blog archive (#921) Fixed missing year in title when visualizing blog archive filtered by year Signed-off-by: George Araujo --- _includes/metadata.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_includes/metadata.html b/_includes/metadata.html index f94e6cc5e780..af3813a85baa 100644 --- a/_includes/metadata.html +++ b/_includes/metadata.html @@ -21,7 +21,11 @@ {% if page.url == '/blog/index.html' %} {{ site.blog_nav_title }} | {{ title }} {%- elsif page.title != "blank" and page.url != "/" -%} - {{ page.title }} | {{ title }} + {%- if page.title == nil or page.title == "" -%} + {{ page.date | date: "%Y" }} | {{ title }} + {%- else -%} + {{ page.title }} | {{ title }} + {%- endif -%} {%- else -%} {{ title }} {%- endif -%}