feat(title): add invert_title_order config option

This commit is contained in:
welpo 2023-09-09 18:24:26 +02:00
parent 0055a3613e
commit 7e05b520b7
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
3 changed files with 13 additions and 1 deletions

View file

@ -219,6 +219,10 @@ short_date_format = ""
# Custom separator used in title tag and posts metadata (between date, time to read, and tags).
separator = "•"
# Invert the order of the site title and page title in the browser tab.
# Example: true => "Blog • ~/tabi", false => "~/tabi • Blog"
invert_title_order = false
# Full path after the base URL required. So if you were to place it in "static" it would be "/favicon.png"
favicon = "img/seedling.png"

View file

@ -32,6 +32,10 @@
{%- endif -%}
{# Return the final concatenated string. #}
{{- prefix ~ separator ~ suffix -}}
{%- if config.extra.invert_title_order -%}
{{- suffix ~ separator ~ prefix -}}
{%- else -%}
{{- prefix ~ separator ~ suffix -}}
{%- endif -%}
{%- endmacro set_title -%}

View file

@ -104,6 +104,10 @@ short_date_format = ""
# Custom separator used in title tag and posts metadata (between date, time to read, and tags).
separator = "•"
# Invert the order of the site title and page title in the browser tab.
# Example: true => "Blog • ~/tabi", false => "~/tabi • Blog"
invert_title_order = false
# Full path after the base URL required. So if you were to place it in "static" it would be "/favicon.ico"
# favicon = ""