Skip to content

Commit 3ff65d0

Browse files
committed
add goatcounter
1 parent a2c36c0 commit 3ff65d0

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎src/layouts/Layout.astro‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ const resolvedImageWithDomain = new URL(
1717
1818
const { title } = Astro.props;
1919
20-
const makeTitle = title ? title + " | " + "Textstat" : "Textstat";
20+
21+
const textstat = "Textstat - The text analysis library for Python"
22+
const makeTitle = title ? title + " | " + textstat : textstat;
2123
---
2224

2325
<!doctype html>
@@ -43,6 +45,11 @@ const makeTitle = title ? title + " | " + "Textstat" : "Textstat";
4345
})();
4446
</script> -->
4547

48+
<script
49+
data-goatcounter="https://stats.textstat.org/count"
50+
async
51+
src="//gc.zgo.at/count.js"></script>
52+
4653
<meta name="generator" content={Astro.generator} />
4754

4855
<SEO
@@ -53,7 +60,7 @@ const makeTitle = title ? title + " | " + "Textstat" : "Textstat";
5360
basic: {
5461
url: canonicalURL,
5562
type: "website",
56-
title: `Textstat - A Python library to calculate statistics from text`,
63+
title: makeTitle,
5764
image: resolvedImageWithDomain,
5865
},
5966
image: {

0 commit comments

Comments
 (0)