Implement pagination and auto-sitemap

This commit is contained in:
tyler :3
2024-04-07 22:31:25 +01:00
parent ce376a8723
commit 8dd6aac2e6
9 changed files with 49 additions and 19 deletions

View File

@@ -85,6 +85,7 @@ p > img {
flex-direction: row;
align-items: center;
margin-bottom: 10px;
min-width: 880px;
}
.card > a {

View File

@@ -0,0 +1,8 @@
// this puts you back on the page you came from
const referrer = document.referrer
let anchor = document.getElementById("generate-path")
if (referrer.includes("blog.shr4pnel.com") || referrer.includes("localhost:4000")) {
anchor.href = referrer
} else {
anchor.href = "/"
}