summaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-09-24 20:13:50 +0200
committermms <michal@sapka.me>2024-09-24 20:13:50 +0200
commite8a5c5c21380a70d3c7751aed2a94f4df00c129c (patch)
tree7e0562c5393ecdd12d5804ae823473511b47dff7 /layouts/partials
parent0879852b669b45eab00d570c22e764de0a71b106 (diff)
feat: a million goog
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/blog/full-post.html7
-rw-r--r--layouts/partials/blog/meta.html16
-rw-r--r--layouts/partials/full_post.html0
3 files changed, 22 insertions, 1 deletions
diff --git a/layouts/partials/blog/full-post.html b/layouts/partials/blog/full-post.html
index 5533235..c200988 100644
--- a/layouts/partials/blog/full-post.html
+++ b/layouts/partials/blog/full-post.html
@@ -5,5 +5,10 @@
</time>
[ <a href="{{ .Page.Permalink }}">Permalink</a> ]
<hr>
-{{ .Page.Content }}
+ {{ .Page.Content }}
+
+ {{ if .Page.Params.listening}}
+ {{ partial "blog/meta.html" . }}
+ {{ end }}
</article>
+
diff --git a/layouts/partials/blog/meta.html b/layouts/partials/blog/meta.html
new file mode 100644
index 0000000..23e1f78
--- /dev/null
+++ b/layouts/partials/blog/meta.html
@@ -0,0 +1,16 @@
+<aside class="post-meta">
+ {{ if .Params.listening}}
+
+ <!-- Music -->
+ <div>
+ Listening:
+ {{ if .Params.listening_bcamp}}
+ <a href="{{ .Params.listening_bcamp}}"> {{ .Params.listening }}</a>
+ {{ else }}
+ {{ .Params.listening }}
+ {{ end }}
+ </div>
+
+ {{ end }}
+
+</aside>
diff --git a/layouts/partials/full_post.html b/layouts/partials/full_post.html
deleted file mode 100644
index e69de29..0000000
--- a/layouts/partials/full_post.html
+++ /dev/null