yannstatic/_includes/snippets/get-article-title.html
2024-10-31 20:18:37 +01:00

12 lines
392 B
HTML

{%- assign _title = include.article.title | default: layout.title -%}
{%- assign _titles = include.article.titles | default: layout.titles -%}
{%- if _title -%}
{%- assign __return = _title -%}
{%- elsif _titles -%}
{%- include snippets/get-string-from-locale-config.html locale=_titles -%}
{%- assign __return = __return -%}
{%- else -%}
{%- assign __return = nil -%}
{%- endif -%}