aboutsummaryrefslogtreecommitdiff
path: root/templates/post.html
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2025-02-09 03:34:10 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2025-02-09 03:34:10 +0100
commit24fa9b6b84b233181b9c624826be5dd901fbe7d1 (patch)
treecfbe8290017875cd4bb01a8a2188e94aeeaa6b61 /templates/post.html
parent65f8e680c62f7f22587d839d7c76adfef0dab782 (diff)
downloadmitjafelicijan.com-24fa9b6b84b233181b9c624826be5dd901fbe7d1.tar.gz
New style
Diffstat (limited to 'templates/post.html')
-rw-r--r--templates/post.html39
1 files changed, 18 insertions, 21 deletions
diff --git a/templates/post.html b/templates/post.html
index 17f7025..6e122c6 100644
--- a/templates/post.html
+++ b/templates/post.html
@@ -4,29 +4,26 @@
4{{ define "description" }}{{ .Page.Summary }}{{ end }} 4{{ define "description" }}{{ .Page.Summary }}{{ end }}
5 5
6{{ define "content" }} 6{{ define "content" }}
7<section> 7<article>
8 <h1>{{ .Page.Title }}</h1> 8 <h1>{{ .Page.Title }}</h1>
9 <p><cap>{{ .Page.Type }}</cap>, {{ .Page.Created.Format "Jan 2, 2006" }}, on <a href="{{ .Config.BaseURL }}">{{ .Config.Title }}'s blog</a></p> 9 <p><cap>{{ .Page.Type }}</cap>, {{ .Page.Created.Format "Jan 2, 2006" }}, on <a href="{{ .Config.BaseURL }}">{{ .Config.Title }}'s blog</a></p>
10 <div> 10 <div>{{ .Page.HTML }}</div>
11 {{ .Page.HTML }} 11</article>
12 </div>
13</section>
14 12
15<section> 13<div>
16 <br><hr> 14 <br><hr>
17 <p><big><strong>Other posts</strong></big></p> 15 <p><big><strong>Other posts</strong></big></p>
18 <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Other posts"> 16 <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Other posts">
19 <meta itemprop="name" content="Other post"> 17 <meta itemprop="name" content="Other post">
20 {{ range .Pages | filterbytype "post" | random 15 }} 18 {{ range .Pages | filterbytype "post" | random 15 }}
21 {{ if not .Draft }} 19 {{ if not .Draft }}
22 <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> 20 <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
23 {{ end }} 21 {{ end }}
24 {{ end }} 22 {{ end }}
25 </ul> 23 </ul>
26</section> 24</div>
27 25
28{{ if .Page.Meta.mathjax }} 26{{ if .Page.Meta.mathjax }}
29 <script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js" async></script> 27 <script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js" async></script>
30{{ end }} 28{{ end }}
31
32{{ end }} 29{{ end }}