diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.gmi | 4 | ||||
-rw-r--r-- | layouts/_default/single.gmi | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/layouts/_default/baseof.gmi b/layouts/_default/baseof.gmi new file mode 100644 index 0000000..3ef51c1 --- /dev/null +++ b/layouts/_default/baseof.gmi @@ -0,0 +1,4 @@ +{{ partial "header.gmi" . }} +{{ block "main" . }}{{ end }} + +{{ partial "footer.gmi" . -}} diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi new file mode 100644 index 0000000..9681f92 --- /dev/null +++ b/layouts/_default/single.gmi @@ -0,0 +1,6 @@ +{{ define "main" }} +=> ./{{ replaceRE ".+?/" "../" .RelPermalink }} Return to homepage + +{{ $content := .RawContent }} +{{- $content = $content | replaceRE `\[(.+?)\]\((.+?)\)` "=> $2 $1" }} +{{- $content }}{{ end }} |