Skip to content

Commit

Permalink
attempt to use anchor url
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Stone committed Sep 27, 2023
1 parent a3f5089 commit 2cb2aaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 7 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

<body>

<script>
if(location.hash){
console.log(location.hash);
location=location;
}
</script>

{%- include _layout/header.html -%}

<main class="page-content layout-wrapper" aria-label="Content">
Expand Down
6 changes: 1 addition & 5 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@

---

<script>
if(location.hash){
location=location;
}
</script>

{{ content }}


0 comments on commit 2cb2aaf

Please sign in to comment.