diff options
author | mms <michal@sapka.me> | 2024-09-24 20:13:50 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-09-24 20:13:50 +0200 |
commit | e8a5c5c21380a70d3c7751aed2a94f4df00c129c (patch) | |
tree | 7e0562c5393ecdd12d5804ae823473511b47dff7 /layouts | |
parent | 0879852b669b45eab00d570c22e764de0a71b106 (diff) |
feat: a million goog
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/blog/baseof.html | 12 | ||||
-rw-r--r-- | layouts/partials/blog/full-post.html | 7 | ||||
-rw-r--r-- | layouts/partials/blog/meta.html | 16 | ||||
-rw-r--r-- | layouts/partials/full_post.html | 0 |
4 files changed, 34 insertions, 1 deletions
diff --git a/layouts/blog/baseof.html b/layouts/blog/baseof.html index 8f57862..a2e1caf 100644 --- a/layouts/blog/baseof.html +++ b/layouts/blog/baseof.html @@ -45,6 +45,7 @@ :root { --bg-color: #738276; --panel-color: #DBD7D2; + --panel-meta-color: #C2BFBC; --text-color: #000; --cool-border: 4px groove #000; @@ -168,6 +169,16 @@ text-align: justify; display: flow-root; } + aside.post-meta { + margin-left: -20px; + margin-right: -20px; + border-top: var(--cool-border); + padding-left: 20px; + padding-right: 20px; + padding-top: 5px; + padding-bottom: 5px; + background-color: var(--panel-meta-color); + } h2 { margin-bottom: 4px; @@ -357,3 +368,4 @@ </div> </body> + 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 |