]> git.dujemihanovic.xyz Git - dujemihanovic.xyz.git/blobdiff - layouts/_default/baseof.html
Small site revamp
[dujemihanovic.xyz.git] / layouts / _default / baseof.html
index 78033ff8fc925c6ce8ba04e938d33c37d04c64c6..7d840dbc09a0c1087878d253317f7a4a8e70ceeb 100644 (file)
@@ -1,11 +1,13 @@
 <!doctype html>
-<html>
+<html lang="en">
        <head>
                {{ partial "meta.html" . }}
                {{ $style := resources.Get "css/style.css" | resources.Minify }}
-               <link rel="stylesheet" href="{{ $style.Permalink }}?v=1.0.0">
-               <!-- I'm a brainlet and don't know how to properly fetch another page's feed. If you know, please tell me. -->
-               <link rel="alternate" type="application/rss+xml" href="{{ $.Site.BaseURL }}posts/index.xml" title="Blog | Duje Mihanović's Site">
+               <link rel="stylesheet" href="{{ $style.RelPermalink }}?v=1.1.2">
+               {{ $index := $.Site.GetPage "/" }}
+               {{ range $index.AlternativeOutputFormats }}
+               {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
+               {{ end }}
        </head>
 
        <body>
                        {{ block "main" . }}
                        {{ end }}
                </main>
-               <br>
                <footer>
-                       <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>
-                       <code>85qXBHh99bJ62p7s8upmoqYsvHrJvZWLTD7riHFo3E2jRvdQRoiNuXKRaDMAQiJ34Kfix3KHouNCW6bbD4zniWB5QxZR9Xx</code>
-                       <p></p>
-                       {{ $image := resources.Get "img/donate.png" }}
-                       {{ with $image }}
-                       <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="QR code for XMR donation">
+                       {{ with $index.OutputFormats.Get "RSS" }}
+                       <p><a href="{{ .RelPermalink }}">RSS feed</a> | This site is <a href="https://git.dujemihanovic.xyz/?p=dujemihanovic.xyz.git;a=summary">free software</a></p>
                        {{ end }}
-                       {{ $image := resources.Get "img/rss.svg" }}
-                       <p></p>
-                       <!-- See comment above. -->
-                       <a href="{{ $.Site.BaseURL }}posts/index.xml"><img src="{{ $image.RelPermalink }}" width="32px" height="32px" alt="Link to RSS feed"></a>
                </footer>
        </body>
 </html>