✨ feat: use custom separator from config in meta & title
This commit is contained in:
parent
ba0631b4e0
commit
aa00640e96
@ -20,10 +20,13 @@ use_cdn = false
|
|||||||
|
|
||||||
date_format = "" # If unset, uses format: "1st January 2049"
|
date_format = "" # If unset, uses format: "1st January 2049"
|
||||||
|
|
||||||
#Full path after the base URL required. So if you were to place it in "static" it would be "/favicon.ico"
|
# Custom separator used in title tag and posts metadata (between date, time to read, and tags).
|
||||||
|
separator = "•"
|
||||||
|
|
||||||
|
# Full path after the base URL required. So if you were to place it in "static" it would be "/favicon.ico"
|
||||||
favicon = ""
|
favicon = ""
|
||||||
|
|
||||||
#This header image is used for SEO. For example if you were to share an image via Messenger/Instagram/Twitter a preview picture is also presented
|
# This header image is used for SEO. For example if you were to share an image via Messenger/Instagram/Twitter a preview picture is also presented
|
||||||
headerImage = ""
|
headerImage = ""
|
||||||
|
|
||||||
# The icon is display besides the menu text but is not necessary. It needs to be placed under "menu_icon" in the static "folder"
|
# The icon is display besides the menu text but is not necessary. It needs to be placed under "menu_icon" in the static "folder"
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{% macro content(page, separator='•') %}
|
{% macro content(page) %}
|
||||||
|
{% set separator = config.extra.separator | default(value="•") %}
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<article>
|
<article>
|
||||||
<div>
|
<div>
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
{# Setup. #}
|
{# Setup. #}
|
||||||
{% set prefix = config.title | safe %}
|
{% set prefix = config.title | safe %}
|
||||||
{% set separator = " • " %}
|
{% set custom_separator = config.extra.separator | default(value="•") %}
|
||||||
|
{% set separator = " " ~ custom_separator ~ " " %}
|
||||||
|
|
||||||
{% if current_path and current_path == "/" %}
|
{% if current_path and current_path == "/" %}
|
||||||
{% set suffix = "" %}
|
{% set suffix = "" %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user