Skip to content

Commit

Permalink
fix: replace GH Pages root folder 🦔
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeirvingweb committed Sep 29, 2024
1 parent 7f36809 commit b77a94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function PathToPage(passedPage) {

path = path.split('?')[0].split('&')[0].split('#')[0];

var pathCleansed = path.replaceAll("./", "").replaceAll("/", "");
var pathCleansed = path.replaceAll("macclesfield-hedgehogs", "").replaceAll("./", "").replaceAll("/", "");

if(pathCleansed == "" || pathCleansed == "home")
page = {url: "home", title: "Macclesfield Hedgehogs", metadesc: "A video diary of hedgehogs visiting a garden in Macclesfield.", metakey: "macclesfield hedgehogs, mice, video, wildlife, night vision, cameras"};
Expand Down

0 comments on commit b77a94a

Please sign in to comment.