]> git.dujemihanovic.xyz Git - dujemihanovic.xyz.git/commitdiff
Small site revamp
authorDuje Mihanović <duje.mihanovic@skole.hr>
Sun, 3 Sep 2023 18:01:04 +0000 (20:01 +0200)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Sun, 3 Sep 2023 18:01:04 +0000 (20:01 +0200)
* Move Monero donation out of footer into separate page
* Move contact.md into its own subdirectory
* Drop RSS icon

assets/css/style.css
content/contact/index.md [moved from content/contact.md with 100% similarity]
content/donate/donate.png [moved from assets/img/donate.png with 100% similarity]
content/donate/index.md [new file with mode: 0644]
layouts/_default/baseof.html
layouts/partials/nav.html

index 1dbabd00b2ccdda09c8f60d353e587a67c69597f..12416d5e4f2d8fe0284c57278f2476b26796edd9 100644 (file)
@@ -42,6 +42,6 @@ main {
        text-align: justify;
 }
 
-footer {
+code {
        overflow-wrap: anywhere;
 }
similarity index 100%
rename from content/contact.md
rename to content/contact/index.md
diff --git a/content/donate/index.md b/content/donate/index.md
new file mode 100644 (file)
index 0000000..6914345
--- /dev/null
@@ -0,0 +1,13 @@
+---
+title: "Donate"
+date: 2023-09-03T19:49:41+02:00
+draft: true
+---
+If you wish to support me, I accept XMR donations to the following wallet:
+
+`85qXBHh99bJ62p7s8upmoqYsvHrJvZWLTD7riHFo3E2jRvdQRoiNuXKRaDMAQiJ34Kfix3KHouNCW6bbD4zniWB5QxZR9Xx`
+
+Alternatively, you can use OpenAlias (domain name only) or the following QR
+code:
+
+![Monero QR code](./donate.png)
index b92c389441c1b2e25ef939b744538738d5bc0230..7d840dbc09a0c1087878d253317f7a4a8e70ceeb 100644 (file)
@@ -3,7 +3,7 @@
        <head>
                {{ partial "meta.html" . }}
                {{ $style := resources.Get "css/style.css" | resources.Minify }}
-               <link rel="stylesheet" href="{{ $style.RelPermalink }}?v=1.1.1">
+               <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 }}
                        {{ block "main" . }}
                        {{ end }}
                </main>
-               <br>
                <footer>
-                       <center>
-                       <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">
-                       {{ end }}
-                       {{ $image := resources.Get "img/rss.svg" }}
-                       <p></p>
                        {{ 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 }}
+                       <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 }}
-                       <p>This site is <a href="https://git.dujemihanovic.xyz/?p=dujemihanovic.xyz.git;a=summary">free software</a></p>
-                       </center>
                </footer>
        </body>
 </html>
index 35b6ec9a0e476c1f2ec74aef51853cee62216d4b..cf8baab4b3de51ff1aef9db46b49598e1ad035ee 100644 (file)
@@ -3,5 +3,6 @@
                <li><a href="/">Home</a></li>
                <li><a href="/posts/">Blog</a></li>
                <li><a href="/contact/">Contact</a></li>
+               <li><a href="/donate/">Donate</a></li>
        </ul>
 </nav>