diff options
author | Valentin Popov <valentin@popov.link> | 2024-09-13 02:33:43 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-09-13 02:33:43 +0300 |
commit | b8fd1868010e74639a7755e9ec93061b712d55fb (patch) | |
tree | 8d0ab41748e280452d4a75ba8008d615db648989 | |
parent | 33c9464dad0979b05323e4d508875ad47e1c425f (diff) | |
download | popov.link-b8fd1868010e74639a7755e9ec93061b712d55fb.tar.xz popov.link-b8fd1868010e74639a7755e9ec93061b712d55fb.zip |
Refactor Analytics component to encode URI parameters
-rw-r--r-- | src/components/Analytics.astro | 2 | ||||
-rw-r--r-- | src/components/Header.astro | 5 | ||||
-rw-r--r-- | src/scss/_framework.scss | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/components/Analytics.astro b/src/components/Analytics.astro index 977c610..428ad4f 100644 --- a/src/components/Analytics.astro +++ b/src/components/Analytics.astro @@ -13,5 +13,5 @@ const { title } = Astro.props; <!-- GoatCounter --> <script is:inline data-goatcounter="https://analytics.popov.link/count" src="//gc.zgo.at/count.js"></script> <noscript> - <img alt="pixel" src={`https://analytics.popov.link/count?p=${path}&t=${title}`} /> + <img alt="pixel" src={`https://analytics.popov.link/count?p=${encodeURI(path)}&t=${encodeURI(title)}`} /> </noscript> diff --git a/src/components/Header.astro b/src/components/Header.astro index 5b163c8..0f91af3 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -12,7 +12,7 @@ left: 0; line-height: 3.5em; opacity: 0.975; - position: fixed; + position: absolute; right: 0; top: 0; } @@ -36,6 +36,7 @@ @media (width <=684px) { header { box-shadow: none; + position: fixed; } nav { @@ -50,6 +51,6 @@ <header> <nav> - <a href="/feed.xml">RSS</a> + <a href="/">Home</a> </nav> </header> diff --git a/src/scss/_framework.scss b/src/scss/_framework.scss index e1e0c13..9e26f6c 100644 --- a/src/scss/_framework.scss +++ b/src/scss/_framework.scss @@ -35,7 +35,7 @@ body { margin: auto; max-width: 52em; min-height: 100vh; - padding: 6em 4em 4em; + padding: 4em; text-rendering: optimizelegibility; } |