mirror of
https://github.com/Dichgrem/Blog.git
synced 2025-08-02 09:49:30 -04:00
Initial commit
This commit is contained in:
17
macros/title.html
Normal file
17
macros/title.html
Normal file
@ -0,0 +1,17 @@
|
||||
{% macro title(page_title, main_title) %}
|
||||
{%- 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 and config.extra.page_titles == "page_only" -%}
|
||||
{%- if page_title -%}
|
||||
{{ page_title }}
|
||||
{%- else -%}
|
||||
{{ main_title }}
|
||||
{%- endif -%}
|
||||
{%- else -%}
|
||||
{{ main_title }}
|
||||
{%- endif -%}
|
||||
{% endmacro title %}
|
Reference in New Issue
Block a user