Skip to content

Commit

Permalink
randomPostLink -> randomPageLink
Browse files Browse the repository at this point in the history
  • Loading branch information
band committed Oct 23, 2024
1 parent e0d1d80 commit 46ba3ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .nxc/this-website-themes/dolce/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
{% endif %}
{% if lunr_posts_sitepath != '' %}
<script src="{{lunr_posts_sitepath}}"></script>
<script> function randomPostLink() { return "{{websiteroot}}"+lunr_posts[Math.floor(Math.random() * lunr_posts.length)].link; } </script>
<script> function randomPageLink() { return "{{websiteroot}}"+lunr_posts[Math.floor(Math.random() * lunr_posts.length)].link; } </script>
{% endif %}
</head>
2 changes: 1 addition & 1 deletion Sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ don't worry if things look different for a while!)
{< /div >}

{< div class="navlinks" >}
<button onclick="location.href=`${randomPostLink()}`">
<button onclick="location.href=`${randomPageLink()}`">
RANDOM PAGE
</button>
{< /div >}
Expand Down

0 comments on commit 46ba3ca

Please sign in to comment.