michal-sapka-me

Codebase for my homepage.
git clone git://vcs.sapka.me/michal-sapka-me
Log | Files | Refs

commit 3c19d84d4b9e41f34c1df2671cbff32df9e3b6d1
parent addc47b5c7be1c793da1c205c86080fd4b8671f5
Author: MichaƂ M. Sapka <michal@sapka.me>
Date:   Sun,  5 Feb 2023 14:10:03 +0100

chore: move to new domain

Diffstat:
Mconfig.toml | 2+-
Mcontent/2023/statistics-are-now-public.md | 2+-
Mlayouts/_default/baseof.html | 7+++----
Mupload.sh | 2+-
4 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/config.toml b/config.toml @@ -4,4 +4,4 @@ title = "Michal's website" tagline = "a" [params] defaultDescription = "Welcome to my blog!" - + plausibleDomain = "d-s.sh" diff --git a/content/2023/statistics-are-now-public.md b/content/2023/statistics-are-now-public.md @@ -9,4 +9,4 @@ tags: ['statistics', 'plausible', 'google'] --- I use Plausible here, a privacy-oriented alternative to Google Analytics. I want to know what you read and where you came from (even if the latter works poorly). I don't want to know who you are. -One cool feature: I can make the statistics public. You can now go to [https://plausible.io/michal.sapka.me](https://plausible.io/michal.sapka.me) and see them if you are interested in how few people reach here :) +One cool feature: I can make the statistics public. You can now go to [https://plausible.io/d-s.sh](https://plausible.io/d-s.sh) and see them if you are interested in how few people reach here :) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html @@ -33,10 +33,9 @@ <meta name="robots" content="index, follow"> {{ if isset .Params "tags" }}<meta name="keywords" content="{{ with .Params.tags }}{{ delimit . ", " }}{{ end }}">{{end}} - <script defer data-api="/api/event" data-domain="michal.sapka.me" src="/js/script.js"></script> + <script defer data-api="/api/event" data-domain="{{ .Site.Params.PlausibleDomain}}" src="/js/script.js"></script> </head> - <body> - {{ block "header" . }} + <body> {{ block "header" . }} <nav id="topnav"> <div> <a href="/">Home</a> @@ -73,7 +72,7 @@ </main> <footer> <div> - <a href="https://git.sapka.me/michal-sapka-me.git/" target="_blank">Source code is available</a>. Theme is temporary. <a href="https://plausible.io/michal.sapka.me">Statistics are public</a>. Only glory of Satan is eternal. + <a href="https://git.sapka.me/michal-sapka-me.git/" target="_blank">Source code is available</a>. Theme is temporary. <a href="https://plausible.io/{{ .Site.Params.PlausibleDomain }}">Statistics are public</a>. Only glory of Satan is eternal. <BR><BR> <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>. diff --git a/upload.sh b/upload.sh @@ -1,3 +1,3 @@ #!/bin/sh -hugo & rsync -rtvzP public/ root@michal.sapka.me:/var/www/michal/ +hugo & rsync -rtvzP public/ root@michal.sapka.me:/var/www/d-s/