]> git.dujemihanovic.xyz Git - dujemihanovic.xyz.git/blob - layouts/_default/baseof.html
Properly link RSS feed in templates
[dujemihanovic.xyz.git] / layouts / _default / baseof.html
1 <!doctype html>
2 <html lang="en">
3 <head>
4 {{ partial "meta.html" . }}
5 {{ $style := resources.Get "css/style.css" | resources.Minify }}
6 <link rel="stylesheet" href="{{ $style.RelPermalink }}?v=1.1.0">
7 {{ $index := $.Site.GetPage "/" }}
8 {{ range $index.AlternativeOutputFormats }}
9 {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
10 {{ end }}
11 </head>
12
13 <body>
14 {{ partial "nav.html" }}
15 <main>
16 {{ block "main" . }}
17 {{ end }}
18 </main>
19 <br>
20 <footer>
21 <center>
22 <p>If you appreciate my work and would like to donate, you can donate XMR to this address or use the QR code below.</p>
23 <code>85qXBHh99bJ62p7s8upmoqYsvHrJvZWLTD7riHFo3E2jRvdQRoiNuXKRaDMAQiJ34Kfix3KHouNCW6bbD4zniWB5QxZR9Xx</code>
24 <p></p>
25 {{ $image := resources.Get "img/donate.png" }}
26 {{ with $image }}
27 <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="QR code for XMR donation">
28 {{ end }}
29 {{ $image := resources.Get "img/rss.svg" }}
30 <p></p>
31 {{ with $index.OutputFormats.Get "RSS" }}
32 {{ printf `<a href="%s"><img src="%s" width="32" height="32" alt="Link to RSS feed"></a>` .RelPermalink $image.RelPermalink | safeHTML }}
33 {{ end }}
34 <p>This site is <a href="https://git.dujemihanovic.xyz/?p=dujemihanovic.xyz.git;a=summary">free software</a></p>
35 </center>
36 </footer>
37 </body>
38 </html>