Skip to content

Commit

Permalink
Fixed missing year in title when in blog archive (alshedivat#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 and zkotti committed Dec 10, 2022
1 parent b507eb8 commit fa6cf66
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 fa6cf66

Please sign in to comment.