summaryrefslogtreecommitdiffstats
path: root/layouts/art
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-10-20 14:24:29 +0100
committerMatthew Lemon <matt@matthewlemon.com>2022-10-20 14:24:29 +0100
commitaebfdc51e4ca993176eafd99db4cc92e792b6d8a (patch)
treeff5dd3dfda0ba8a778981016a9d8df0e45ae2061 /layouts/art
parent2f91baaa2057c5abc86d7d7ddbcb0e46cf393341 (diff)
update
Diffstat (limited to 'layouts/art')
-rw-r--r--layouts/art/list.html6
-rw-r--r--layouts/art/single.html26
2 files changed, 32 insertions, 0 deletions
diff --git a/layouts/art/list.html b/layouts/art/list.html
new file mode 100644
index 0000000..8da51d6
--- /dev/null
+++ b/layouts/art/list.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+
+{{ .Content }}
+
+{{ partial "art.html" . }}
+{{ end }}
diff --git a/layouts/art/single.html b/layouts/art/single.html
new file mode 100644
index 0000000..ac6f351
--- /dev/null
+++ b/layouts/art/single.html
@@ -0,0 +1,26 @@
+{{ define "main" }}
+
+<style type="text/css" media="screen">
+ li {
+ margin-bottom: 1.2em;
+ }
+</style>
+
+<h2 class="title">{{ .Title }}</h2>
+
+{{ .Content }}
+
+ {{ if .Params.tags }}
+ <div style="background-color: rgb(240, 240, 240);">
+ This page is tagged with:
+ {{ range .Params.tags }}
+ <a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a>
+ {{ end }}
+ {{ else }}
+ <div style="background-color: rgb(240, 240, 240); margin-top: 20px;">
+ This page is untagged.
+ </div>
+ {{ end }}
+ </div>
+
+{{ end }}