Refactor Analytics component to encode URI parameters
This commit is contained in:
parent
33c9464dad
commit
b8fd186801
@ -13,5 +13,5 @@ const { title } = Astro.props;
|
|||||||
<!-- GoatCounter -->
|
<!-- GoatCounter -->
|
||||||
<script is:inline data-goatcounter="https://analytics.popov.link/count" src="//gc.zgo.at/count.js"></script>
|
<script is:inline data-goatcounter="https://analytics.popov.link/count" src="//gc.zgo.at/count.js"></script>
|
||||||
<noscript>
|
<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>
|
</noscript>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
line-height: 3.5em;
|
line-height: 3.5em;
|
||||||
opacity: 0.975;
|
opacity: 0.975;
|
||||||
position: fixed;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
@ -36,6 +36,7 @@
|
|||||||
@media (width <=684px) {
|
@media (width <=684px) {
|
||||||
header {
|
header {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
position: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
@ -50,6 +51,6 @@
|
|||||||
|
|
||||||
<header>
|
<header>
|
||||||
<nav>
|
<nav>
|
||||||
<a href="/feed.xml">RSS</a>
|
<a href="/">Home</a>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
@ -35,7 +35,7 @@ body {
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 52em;
|
max-width: 52em;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding: 6em 4em 4em;
|
padding: 4em;
|
||||||
text-rendering: optimizelegibility;
|
text-rendering: optimizelegibility;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user