Implement pagination and auto-sitemap
This commit is contained in:
@@ -85,6 +85,7 @@ p > img {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
min-width: 880px;
|
||||
}
|
||||
|
||||
.card > a {
|
||||
|
8
assets/js/get-correct-path.js
Normal file
8
assets/js/get-correct-path.js
Normal 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 = "/"
|
||||
}
|
Reference in New Issue
Block a user