diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2019-10-22 13:32:43 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2019-10-22 13:32:43 +0200 |
| commit | be09bb704f8030a072114108fc094f07ee62efba (patch) | |
| tree | b05537d59b1f47398f38bacdbe138f1c83ac9399 /site.tmpl | |
| parent | 629d3907b89f795667ba5fe2f31b790bf56093cd (diff) | |
| download | mitjafelicijan.com-be09bb704f8030a072114108fc094f07ee62efba.tar.gz | |
Added 301 rules for old articles
Diffstat (limited to 'site.tmpl')
| -rw-r--r-- | site.tmpl | 12 |
1 files changed, 9 insertions, 3 deletions
| @@ -11,13 +11,14 @@ | |||
| 11 | 11 | ||
| 12 | <link rel="preconnect" href="https://www.google-analytics.com"> | 12 | <link rel="preconnect" href="https://www.google-analytics.com"> |
| 13 | 13 | ||
| 14 | <meta name="author" content="{{ html .Site.Other.Author }}"> | ||
| 15 | <link rel="alternate" type="application/atom+xml" title="{{ html .Site.Other.Title }} feed" href="{{ .Rel "feed.atom" }}"> | 14 | <link rel="alternate" type="application/atom+xml" title="{{ html .Site.Other.Title }} feed" href="{{ .Rel "feed.atom" }}"> |
| 16 | <title>{{ .Site.Other.Title }}{{ if .Title }}: {{ .Title }}{{ end }}</title> | ||
| 17 | <link rel="stylesheet" type="text/css" href="{{ .Rel "static/style.css" }}"> | 15 | <link rel="stylesheet" type="text/css" href="{{ .Rel "static/style.css" }}"> |
| 18 | |||
| 19 | <link rel="icon" type="image/png" href="{{ .Rel "static/avatar-64x64.png" }}"> | 16 | <link rel="icon" type="image/png" href="{{ .Rel "static/avatar-64x64.png" }}"> |
| 20 | 17 | ||
| 18 | <title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Other.Title }}</title> | ||
| 19 | <meta name="author" content="{{ html .Site.Other.Author }}"> | ||
| 20 | <meta name="description" content="{{ if .Other.Description }}{{ .Other.Description }}{{ else }}{{ html .Site.Other.Description }}{{ end }}"> | ||
| 21 | |||
| 21 | </head> | 22 | </head> |
| 22 | <body> | 23 | <body> |
| 23 | <main> | 24 | <main> |
| @@ -49,6 +50,10 @@ | |||
| 49 | </time> | 50 | </time> |
| 50 | {{end}} | 51 | {{end}} |
| 51 | 52 | ||
| 53 | {{define "modified"}} | ||
| 54 | <p class="modified">Modified on {{ .ModTime }}</p> | ||
| 55 | {{end}} | ||
| 56 | |||
| 52 | {{ define "page" }} | 57 | {{ define "page" }} |
| 53 | {{ template "header" . }} | 58 | {{ template "header" . }} |
| 54 | {{ template "navigation" . }} | 59 | {{ template "navigation" . }} |
| @@ -71,6 +76,7 @@ | |||
| 71 | {{ .Content }} | 76 | {{ .Content }} |
| 72 | </section> | 77 | </section> |
| 73 | </article> | 78 | </article> |
| 79 | {{ template "modified" . }} | ||
| 74 | {{ end }} | 80 | {{ end }} |
| 75 | 81 | ||
| 76 | {{ define "mathjax" }} | 82 | {{ define "mathjax" }} |
