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 <george.gcac@gmail.com>
This commit is contained in:
George 2022-10-12 07:02:15 -03:00 committed by GitHub
parent 951ae92858
commit 7d7567eac8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 -%}