Merge pull request #56 from welpo/feature/custom-separator

 feat: use custom separator from config in meta & title
main
Óscar 2 years ago committed by GitHub
commit 20a354b2da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,6 +20,9 @@ use_cdn = false
date_format = "" # If unset, uses format: "1st January 2049"
# 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 = ""

@ -1,4 +1,6 @@
{% macro content(page, separator='•') %}
{% macro content(page) %}
{% set separator = config.extra.separator | default(value="•") %}
<main>
<article>
<div>

@ -2,7 +2,8 @@
{# Setup. #}
{% 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 == "/" %}
{% set suffix = "" %}

Loading…
Cancel
Save