diff options
author | Nicholas Johnson <nick@nicksphere.ch> | 2022-08-07 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicksphere.ch> | 2022-08-07 00:00:00 +0000 |
commit | d6513a636960f1a26d950de1433c174e95799f0557f54057ff6fbad541e013cc (patch) | |
tree | 883d610f1198e98704fa784462f5178d4e6ffcdae33f9fdcaa93506c17283c90 /layouts | |
parent | 7995aef573e78c70972b67692b126e571686816aa68be64d1281b70e98061127 (diff) | |
download | hugo-theme-journal-d6513a636960f1a26d950de1433c174e95799f0557f54057ff6fbad541e013cc.tar.gz hugo-theme-journal-d6513a636960f1a26d950de1433c174e95799f0557f54057ff6fbad541e013cc.zip |
Add line break between "return to homepage" button and content
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.gmi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 74fc0fb..1347179 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -1,6 +1,7 @@ {{ define "main" }} => ./{{ replaceRE ".+?/" "../" .RelPermalink | safeURL }} Return to homepage + {{ $content := .RawContent }} {{- $content = $content | replaceRE `\n\[(.+?)\]\((.+?)\)` "\n=> $2 $1" }} {{- $content = $content | replaceRE `\*{3}(.+?)\*{3}|\*{2}(.+?)\*{2}|\*{1}(.+?)\*{1}` "$1$2$3$4$5$6" }} |