yannstatic/_includes/snippets/get-article-title.html

12 lines
392 B
HTML
Raw Normal View History

2024-10-31 20:18:37 +01:00
{%- 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 -%}