diff options
Diffstat (limited to 'templates/note.html')
| -rw-r--r-- | templates/note.html | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/templates/note.html b/templates/note.html index c543773..55a29e9 100644 --- a/templates/note.html +++ b/templates/note.html | |||
| @@ -4,34 +4,30 @@ | |||
| 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 notes</strong></big></p> | 15 | <p><big><strong>Other notes</strong></big></p> |
| 18 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Other notes"> | 16 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Other notes"> |
| 19 | <meta itemprop="name" content="Other notes"> | 17 | <meta itemprop="name" content="Other notes"> |
| 20 | {{ range .Pages | filterbytype "note" | random 15 }} | 18 | {{ range .Pages | filterbytype "note" | random 15 }} |
| 21 | {{ if not .Draft }} | 19 | {{ if not .Draft }} |
| 22 | <li> | 20 | <li> |
| 23 | {{ range .Meta.tags }} | 21 | {{ range .Meta.tags }}<mark>{{ . }}</mark>{{ end }} |
| 24 | <mark>{{ . }}</mark> | 22 | <a href="{{ .RelPermalink }}">{{ .Title }}</a> |
| 25 | {{ end }} | 23 | </li> |
| 26 | <a href="{{ .RelPermalink }}">{{ .Title }}</a> | 24 | {{ end }} |
| 27 | </li> | 25 | {{ end }} |
| 28 | {{ end }} | 26 | </ul> |
| 29 | {{ end }} | 27 | </div> |
| 30 | </ul> | ||
| 31 | </section> | ||
| 32 | 28 | ||
| 33 | {{ if .Page.Meta.mathjax }} | 29 | {{ if .Page.Meta.mathjax }} |
| 34 | <script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js" async></script> | 30 | <script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js" async></script> |
| 35 | {{ end }} | 31 | {{ end }} |
| 36 | 32 | ||
| 37 | {{ end }} | 33 | {{ end }} |
