feat: analytics

This commit is contained in:
2023-10-15 14:36:02 +02:00
parent ea0681f1ad
commit b4e3a135f8
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
<link rel="icon" type="image/png" href="/pfp.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sr Izan's front page for the web:tm:</title>
<script async src="https://analytics.srizan.dev/script.js" data-website-id="54ccb44c-b03c-4790-8262-3e1a82241a24"></script>
</head>
<body>
<div id="root"></div>

View File

@@ -7,7 +7,7 @@ export function BlogNavBar(props: Props) {
<img src="https://github.com/SrIzan10.png" alt="main profile picture" height="50vh" />
<p>{props.title || 'Sr Izan\'s blog'}</p>
</div>
<a href={'/'} className="backHomeLink">Go back home</a>
<a href={props.title ? '/blog' : '/'} className="backHomeLink">Go back {props.title ? 'to posts' : 'home'}</a>
</div>
)
}