aboutsummaryrefslogtreecommitdiff
path: root/templates/note.html
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2025-04-09 08:11:05 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2025-04-09 08:11:05 +0200
commitcd360009270a0a9b0501ed73fe327be84824ca29 (patch)
treeff438b4a229227a934fd5e05785bcd3d2aac7a27 /templates/note.html
parent7492a206dedf44ecb8ab64981f8d0ab40bcd9ead (diff)
downloadmitjafelicijan.com-cd360009270a0a9b0501ed73fe327be84824ca29.tar.gz
Style update
Diffstat (limited to 'templates/note.html')
-rw-r--r--templates/note.html49
1 files changed, 29 insertions, 20 deletions
diff --git a/templates/note.html b/templates/note.html
index 62ac5f0..939fdfa 100644
--- a/templates/note.html
+++ b/templates/note.html
@@ -4,33 +4,42 @@
4{{ define "description" }}{{ .Page.Summary }}{{ end }} 4{{ define "description" }}{{ .Page.Summary }}{{ end }}
5 5
6{{ define "content" }} 6{{ define "content" }}
7
7<article> 8<article>
8 <hgroup> 9 <hgroup>
9 <h1>{{ .Page.Title }}</h1> 10 <h1>{{ .Page.Title }}</h1>
10 <p><cap>{{ .Page.Type }}</cap>, {{ .Page.Created.Format "Jan 2, 2006" }}, on <a href="{{ .Config.BaseURL }}">{{ .Config.Title }}'s blog</a></p> 11 <p><span class="capitalize">{{ .Page.Type }}</span>, {{ .Page.Created.Format "Jan 2, 2006" }}, on <a href="{{ .Config.BaseURL }}">{{ .Config.Title }}'s blog</a></p>
11 </hgroup> 12 </hgroup>
12 <div>{{ .Page.HTML }}</div> 13 {{ .Page.HTML }}
13</article> 14</article>
14 15
15<div> 16<section>
16 <br><hr> 17 <h2>Other notes</h2>
17 <p><big><strong>Other notes</strong></big></p> 18 <table>
18 <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Other notes"> 19 <thead>
19 <meta itemprop="name" content="Other notes"> 20 <tr>
20 {{ range .Pages | filterbytype "note" | random 15 }} 21 <th>Date</th>
21 {{ if not .Draft }} 22 <th>Title</th>
22 <li> 23 <th></th>
23 {{ if .Meta.tags }} 24 </tr>
24 <div class="tags"> 25 </thead>
25 {{ range .Meta.tags }}<mark>{{ . }}</mark>{{ end }} 26 <tbody>
26 </div> 27 {{ range .Pages | filterbytype "note" | random 15 }}
27 {{ end }} 28 {{ if not .Draft }}
28 <a href="{{ .RelPermalink }}">{{ .Title }}</a> 29 <tr>
29 </li> 30 <td><time datetime="{{ .Created.Format "2006-01-02" }}">{{ .Created.Format "2006-01-02" }}</time></td>
31 <td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td>
32 <td class="tags">
33 {{ if .Meta.tags }}
34 {{ range .Meta.tags }}<mark>{{ . }}</mark>{{ end }}
35 {{ end }}
36 </td>
37 </tr>
38 {{ end }}
30 {{ end }} 39 {{ end }}
31 {{ end }} 40 </tbody>
32 </ul> 41 </table>
33</div> 42</section>
34 43
35{{ if .Page.Meta.mathjax }} 44{{ if .Page.Meta.mathjax }}
36 <script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js" async></script> 45 <script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js" async></script>