summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2023-05-12 15:26:18 +0100
committerYann Herklotz <git@yannherklotz.com>2023-05-12 15:26:18 +0100
commit91c696fc52ffb1eeb894328c722ba4473c8027c1 (patch)
treeacad0a25bbbfc198aab3f0f7a7068471d26c7756 /layouts/shortcodes
parentfbca1f08c0de7413519931e134ee0ef48f408ade (diff)
downloadzk-web-91c696fc52ffb1eeb894328c722ba4473c8027c1.tar.gz
zk-web-91c696fc52ffb1eeb894328c722ba4473c8027c1.zip
Update themes and add content
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/transclude-1.html2
-rw-r--r--layouts/shortcodes/transclude-2.html2
-rw-r--r--layouts/shortcodes/transclude-3.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/layouts/shortcodes/transclude-1.html b/layouts/shortcodes/transclude-1.html
index 80a24da..cfc6a86 100644
--- a/layouts/shortcodes/transclude-1.html
+++ b/layouts/shortcodes/transclude-1.html
@@ -1,4 +1,4 @@
<div class="transclude-1">
- <h2><a class="transclude-link" href="/zettel/{{ .Get "zettel" }}">{{ .Get "zettel" }}: {{ with ($.Site.GetPage (printf "/zettel/%s" (.Get "zettel"))) }}{{ .Title | markdownify }}{{ end }}</a></h2>
+ {{ with ($.Site.GetPage (printf "/zettel/%s" (.Get "zettel"))) }}<h2>{{ .Title | markdownify }}<a class="transclude-link" href="{{ .RelPermalink }}"> [#{{ .Params.zettelid }}]</a></h2>{{ end }}
{{ .Inner | markdownify }}
</div>
diff --git a/layouts/shortcodes/transclude-2.html b/layouts/shortcodes/transclude-2.html
index a63de87..20987ae 100644
--- a/layouts/shortcodes/transclude-2.html
+++ b/layouts/shortcodes/transclude-2.html
@@ -1,4 +1,4 @@
<div class="transclude-2">
- <h3><a class="transclude-link" href="/zettel/{{ .Get "zettel" }}">{{ .Get "zettel" }}: {{ with ($.Site.GetPage (printf "/zettel/%s" (.Get "zettel"))) }}{{ .Title | markdownify }}{{ end }}</a></h3>
+ {{ with ($.Site.GetPage (printf "/zettel/%s" (.Get "zettel"))) }}<h3>{{ .Title | markdownify }}<a class="transclude-link" href="{{ .RelPermalink }}"> [#{{ .Params.zettelid }}]</a></h3>{{ end }}
{{ .Inner | markdownify }}
</div>
diff --git a/layouts/shortcodes/transclude-3.html b/layouts/shortcodes/transclude-3.html
index 1e43c85..6e73cd4 100644
--- a/layouts/shortcodes/transclude-3.html
+++ b/layouts/shortcodes/transclude-3.html
@@ -1,4 +1,4 @@
<div class="transclude-3">
- <h4><a class="transclude-link" href="/zettel/{{ .Get "zettel" }}">{{ .Get "zettel" }}: {{ with ($.Site.GetPage (printf "/zettel/%s" (.Get "zettel"))) }}{{ .Title | markdownify }}{{ end }}</a></h4>
+ {{ with ($.Site.GetPage (printf "/zettel/%s" (.Get "zettel"))) }}<h4>{{ .Title | markdownify }}<a class="transclude-link" href="{{ .RelPermalink }}"> [#{{ .Params.zettelid }}]</a></h4>{{ end }}
{{ .Inner | markdownify }}
</div>