summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał M. Sapka <michal@sapka.me>2023-02-05 14:10:03 +0100
committerMichał M. Sapka <michal@sapka.me>2023-02-05 14:10:03 +0100
commit3c19d84d4b9e41f34c1df2671cbff32df9e3b6d1 (patch)
treeca63c6d9653d4f4c5e79167ab6b56e0a4d5e4051
parentaddc47b5c7be1c793da1c205c86080fd4b8671f5 (diff)
chore: move to new domain
-rw-r--r--config.toml2
-rw-r--r--content/2023/statistics-are-now-public.md2
-rw-r--r--layouts/_default/baseof.html7
-rwxr-xr-xupload.sh2
4 files changed, 6 insertions, 7 deletions
diff --git a/config.toml b/config.toml
index ec8ae8e..6eaba90 100644
--- 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
index 4aaf429..074937c 100644
--- 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
index 58d2aa3..6c2020c 100644
--- 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
index da5d7dd..1e4bfd1 100755
--- 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/