Skip to content

Commit

Permalink
Fixed missing year in title when in blog archive (#921)
Browse files Browse the repository at this point in the history
Fixed missing year in title when visualizing blog archive filtered by
year

Signed-off-by: George Araujo <george.gcac@gmail.com>
  • Loading branch information
george-gca authored Oct 12, 2022
1 parent 951ae92 commit 7d7567e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _includes/metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down

0 comments on commit 7d7567e

Please sign in to comment.