]> git.dujemihanovic.xyz Git - dujemihanovic.xyz.git/blobdiff - layouts/_default/baseof.html
Finally fix XMR address overflow on mobile
[dujemihanovic.xyz.git] / layouts / _default / baseof.html
index 0e647e883a159f304b793ec0af02734e10d658cc..b92c389441c1b2e25ef939b744538738d5bc0230 100644 (file)
@@ -3,9 +3,11 @@
        <head>
                {{ partial "meta.html" . }}
                {{ $style := resources.Get "css/style.css" | resources.Minify }}
-               <link rel="stylesheet" href="{{ $style.RelPermalink }}?v=1.1.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.1">
+               {{ $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>
@@ -26,8 +28,9 @@
                        {{ end }}
                        {{ $image := resources.Get "img/rss.svg" }}
                        <p></p>
-                       <!-- See comment above. -->
-                       <a href="{{ $.Site.BaseURL }}posts/index.xml"><img src="{{ $image.RelPermalink }}" width="32" height="32" alt="Link to RSS feed"></a>
+                       {{ with $index.OutputFormats.Get "RSS" }}
+                       {{ printf `<a href="%s"><img src="%s" width="32" height="32" alt="Link to RSS feed"></a>` .RelPermalink $image.RelPermalink | safeHTML }}
+                       {{ end }}
                        <p>This site is <a href="https://git.dujemihanovic.xyz/?p=dujemihanovic.xyz.git;a=summary">free software</a></p>
                        </center>
                </footer>