aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-05-26 00:40:40 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-05-26 00:40:40 +0200
commit43b0708769eb61392050045b881f8e6ba39c5b66 (patch)
tree3939579a13b8325325d5ebb8e05324a41ed78a6d /themes/simple/layouts
parent49e7e7d555a6cd9810d81561fa3e98e3d64502be (diff)
downloadmitjafelicijan.com-43b0708769eb61392050045b881f8e6ba39c5b66.tar.gz
Massive update to posts, archetypes
Added a archetypes for creating notes and posts so it auto-populates fields. Fixed existing posts so they align with the rule of 80 columns now.
Diffstat (limited to 'themes/simple/layouts')
-rw-r--r--themes/simple/layouts/_default/single.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html
index ffa776f..4489601 100644
--- a/themes/simple/layouts/_default/single.html
+++ b/themes/simple/layouts/_default/single.html
@@ -6,7 +6,7 @@
6 <header class="mb-6"> 6 <header class="mb-6">
7 <h1 itemtype="headline" class="text-4xl font-bold mb-4 leading-1 md:leading-2">{{ .Title }}</h1> 7 <h1 itemtype="headline" class="text-4xl font-bold mb-4 leading-1 md:leading-2">{{ .Title }}</h1>
8 8
9 {{ if in .Type "posts" }} 9 {{ if not (eq .Type "pages") }}
10 <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time> 10 <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time>
11 {{ end }} 11 {{ end }}
12 </header> 12 </header>
@@ -23,7 +23,7 @@
23 </div> 23 </div>
24 </article> 24 </article>
25 25
26 {{ if in .Type "posts" }} 26 {{ if not (eq .Type "pages") }}
27 <hr class="border-2 border-gray-100 mb-10" /> 27 <hr class="border-2 border-gray-100 mb-10" />
28 {{ end }} 28 {{ end }}
29 29
@@ -39,7 +39,7 @@
39 {{ end }} 39 {{ end }}
40 40
41 <!-- Read more --> 41 <!-- Read more -->
42 {{ if in .Type "posts" }} 42 {{ if not (eq .Type "pages") }}
43 {{ partial "read-more.html" . }} 43 {{ partial "read-more.html" . }}
44 {{ end }} 44 {{ end }}
45 45
@@ -53,4 +53,4 @@
53 {{ end }} 53 {{ end }}
54 54
55</main> 55</main>
56{{ end }} \ No newline at end of file 56{{ end }}