summaryrefslogtreecommitdiff
path: root/themes/LoveIt/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/LoveIt/layouts/_default/single.html')
-rw-r--r--themes/LoveIt/layouts/_default/single.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/themes/LoveIt/layouts/_default/single.html b/themes/LoveIt/layouts/_default/single.html
new file mode 100644
index 0000000..f8f72d7
--- /dev/null
+++ b/themes/LoveIt/layouts/_default/single.html
@@ -0,0 +1,24 @@
+{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}}
+
+{{- define "content" -}}
+ {{- $params := .Scratch.Get "params" -}}
+ <div class="page single special">
+ {{- /* Title */ -}}
+ <h1 class="single-title animate__animated animate__pulse animate__faster">
+ {{- .Title -}}
+ </h1>
+
+ {{- /* Subtitle */ -}}
+ {{- with $params.subtitle -}}
+ <h2 class="single-subtitle">{{ . }}</h2>
+ {{- end -}}
+
+ {{- /* Content */ -}}
+ <div class="content" id="content">
+ {{- dict "Content" .Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
+ </div>
+
+ {{- /* Comment */ -}}
+ {{- partial "comment.html" . -}}
+ </div>
+{{- end -}}