mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-01-08 19:51:06 +01:00
Check if page_titles exists in config.toml
This commit is contained in:
parent
07b99b9758
commit
fe3dc232d8
|
@ -1,11 +1,11 @@
|
|||
{% macro title(page_title, main_title) %}
|
||||
{%- if config.extra.page_titles == "combined" -%}
|
||||
{%- if config.extra.page_titles and config.extra.page_titles == "combined" -%}
|
||||
{%- if page_title -%}
|
||||
{{ page_title }} | {{ main_title }}
|
||||
{%- else -%}
|
||||
{{ main_title }}
|
||||
{%- endif -%}
|
||||
{%- elif config.extra.page_titles == "page_only" -%}
|
||||
{%- elif config.extra.page_titles and config.extra.page_titles == "page_only" -%}
|
||||
{%- if page_title -%}
|
||||
{{ page_title }}
|
||||
{%- else -%}
|
||||
|
|
Loading…
Reference in a new issue