aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/_default/single.html
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2022-08-27 15:19:11 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2022-08-27 15:19:11 +0200
commit9fcb38b42d71c3752a19866273d15e14b3dfa34d (patch)
treec39741dda60ae91d74922c6990e3053871d2cd7e /themes/simple/layouts/_default/single.html
parentfc9eff7f81b11a239039cf4a414245eab5f94190 (diff)
downloadmitjafelicijan.com-9fcb38b42d71c3752a19866273d15e14b3dfa34d.tar.gz
Added Openring
Diffstat (limited to 'themes/simple/layouts/_default/single.html')
-rw-r--r--themes/simple/layouts/_default/single.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html
index 297d90e..6e85b1b 100644
--- a/themes/simple/layouts/_default/single.html
+++ b/themes/simple/layouts/_default/single.html
@@ -2,7 +2,7 @@
2<main aria-role="main" class="container-blog px-6 md:p-0"> 2<main aria-role="main" class="container-blog px-6 md:p-0">
3 3
4 <!-- Single article --> 4 <!-- Single article -->
5 <article itemtype="http://schema.org/Article" class="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">{{.Title}}</h1> 7 <h1 itemtype="headline" class="text-4xl font-extrabold mb-6">{{.Title}}</h1>
8 <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time> 8 <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time>
@@ -34,13 +34,19 @@
34 {{ $randomPosts := shuffle (where .Site.RegularPages "Type" "posts") | first 5 }} 34 {{ $randomPosts := shuffle (where .Site.RegularPages "Type" "posts") | first 5 }}
35 {{ range $randomPosts }} 35 {{ range $randomPosts }}
36 <li class="mb-3"> 36 <li class="mb-3">
37 <time class="block text-gray-500 text-sm">{{ .Date.Format "Mon Jan 2, 2006" }}</time> 37 <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Mon Jan 2, 2006" }}</time>
38 <a href="{{.Permalink}}" itemprop="url" class="hover:bg-yellow-200">{{.Title}}</a> 38 <a href="{{.Permalink}}" itemprop="url" class="hover:bg-yellow-200 font-medium">{{.Title}}</a>
39 <p class="text-gray-600 text-sm">{{.Summary}}</p>
39 </li> 40 </li>
40 {{end}} 41 {{end}}
41 </ul> 42 </ul>
42 </nav> 43 </nav>
43 </section> 44 </section>
44 45
46 <hr class="border-2 border-gray-100 mb-10">
47
48 <!-- Openring -->
49 {{ partial "openring.html" . }}
50
45</main> 51</main>
46{{ end }} 52{{ end }}