Skip to content

Commit

Permalink
feat(amsf): fallback to site name if page title not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Oct 17, 2018
1 parent 092b498 commit 725521b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions _app/_includes/amsf/title
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@
Page title
{%- endcomment -%}
{%- capture amsf_page_title -%}
{%- if page.title.first -%}
{{ page.title[site.active_lang] }}
{%- if page.title -%}
{%- if page.title.first -%}
{{ page.title[site.active_lang] }}
{%- else -%}
{{ page.title }}
{%- endif -%}
{%- else -%}
{{ page.title }}
{{ site.name }}
{%- endif -%}
{%- endcapture -%}

Expand Down

0 comments on commit 725521b

Please sign in to comment.