aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'themes/simple/layouts/_default')
-rwxr-xr-xthemes/simple/layouts/_default/list.html5
-rwxr-xr-xthemes/simple/layouts/_default/single.html13
2 files changed, 13 insertions, 5 deletions
diff --git a/themes/simple/layouts/_default/list.html b/themes/simple/layouts/_default/list.html
index 856abf4..8d72aed 100755
--- a/themes/simple/layouts/_default/list.html
+++ b/themes/simple/layouts/_default/list.html
@@ -9,7 +9,8 @@
9 {{ range (where .Site.RegularPages "Section" "posts") }} 9 {{ range (where .Site.RegularPages "Section" "posts") }}
10 <article class="mb-5" itemscope itemtype="http://schema.org/Article"> 10 <article class="mb-5" itemscope itemtype="http://schema.org/Article">
11 <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Monday Jan 2, 2006" }}</time> 11 <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Monday Jan 2, 2006" }}</time>
12 <a href="/{{ .Params.url }}" itemprop="url" class="hover:bg-yellow-100" rel="bookmark noopener" aria-label="Opens URL"> 12 <a href="/{{ .Params.url }}" itemprop="url" class="hover:bg-yellow-100" rel="bookmark noopener"
13 aria-label="Opens URL">
13 {{ if .Params.draft }} 14 {{ if .Params.draft }}
14 <span class="bg-orange-600 text-white px-1.5">Draft</span> 15 <span class="bg-orange-600 text-white px-1.5">Draft</span>
15 {{ end }} 16 {{ end }}
@@ -30,4 +31,4 @@
30 {{ partial "openring.html" . }} 31 {{ partial "openring.html" . }}
31 32
32</main> 33</main>
33{{ end }} 34{{ end }} \ No newline at end of file
diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html
index 81a7d58..ffa776f 100755
--- a/themes/simple/layouts/_default/single.html
+++ b/themes/simple/layouts/_default/single.html
@@ -4,14 +4,21 @@
4 <!-- Single article --> 4 <!-- Single article -->
5 <article itemtype="http://schema.org/Article" class="single mb-12"> 5 <article itemtype="http://schema.org/Article" class="single mb-12">
6 <header class="mb-6"> 6 <header class="mb-6">
7 <h1 itemtype="headline" class="text-4xl font-extrabold mb-6 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 in .Type "posts" }}
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>
13 13
14 <div class="leading-relaxed"> 14 <div>
15 {{ if ge (len .TableOfContents) 100 }}
16 <p class="font-semibold">Table of contents</p>
17 <div>{{ .TableOfContents }}</div>
18 {{ end }}
19 </div>
20
21 <div class="leading-relaxed content">
15 {{.Content}} 22 {{.Content}}
16 </div> 23 </div>
17 </article> 24 </article>
@@ -46,4 +53,4 @@
46 {{ end }} 53 {{ end }}
47 54
48</main> 55</main>
49{{ end }} 56{{ end }} \ No newline at end of file