feat(title): add `invert_title_order` config option (#142)

main
Óscar 1 year ago committed by GitHub
parent 0055a3613e
commit 9acaba6e35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -219,6 +219,10 @@ short_date_format = ""
# Custom separator used in title tag and posts metadata (between date, time to read, and tags). # Custom separator used in title tag and posts metadata (between date, time to read, and tags).
separator = "•" 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" # 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" favicon = "img/seedling.png"

@ -32,6 +32,10 @@
{%- endif -%} {%- endif -%}
{# Return the final concatenated string. #} {# 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 -%} {%- endmacro set_title -%}

@ -104,6 +104,10 @@ short_date_format = ""
# Custom separator used in title tag and posts metadata (between date, time to read, and tags). # Custom separator used in title tag and posts metadata (between date, time to read, and tags).
separator = "•" 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" # Full path after the base URL required. So if you were to place it in "static" it would be "/favicon.ico"
# favicon = "" # favicon = ""

Loading…
Cancel
Save