aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/note.html17
-rwxr-xr-xtemplates/post.html14
2 files changed, 28 insertions, 3 deletions
diff --git a/templates/note.html b/templates/note.html
index 36c6a3c..c5241c3 100755
--- a/templates/note.html
+++ b/templates/note.html
@@ -4,11 +4,24 @@
4{{ define "description" }}{{ .Page.Summary }}{{ end }} 4{{ define "description" }}{{ .Page.Summary }}{{ end }}
5 5
6{{ define "content" }} 6{{ define "content" }}
7<div> 7<section>
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>
11 {{ .Page.HTML }} 11 {{ .Page.HTML }}
12 </div> 12 </div>
13 </div> 13</section>
14
15<br><hr>
16
17<section>
18 <p><big><strong>Other notes</strong></big></p>
19 <ul>
20 {{ range random 20 .Pages }}
21 {{ if and (eq .Type "note") (not .Draft) }}
22 <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
23 {{ end }}
24 {{ end }}
25 </ul>
26</section>
14{{ end }} 27{{ end }}
diff --git a/templates/post.html b/templates/post.html
index 5e4ce80..6061e47 100755
--- a/templates/post.html
+++ b/templates/post.html
@@ -12,8 +12,20 @@
12 </div> 12 </div>
13</section> 13</section>
14 14
15<br><hr>
16
17<section>
18 <p><big><strong>Other posts</strong></big></p>
19 <ul>
20 {{ range random 20 .Pages }}
21 {{ if and (eq .Type "post") (not .Draft) }}
22 <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
23 {{ end }}
24 {{ end }}
25 </ul>
26</section>
27
15{{ if .Page.Meta.mathjax }} 28{{ if .Page.Meta.mathjax }}
16 <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
17 <script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js" async></script> 29 <script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js" async></script>
18{{ end }} 30{{ end }}
19 31