Skip to content

Commit

Permalink
Feat: Add random page link
Browse files Browse the repository at this point in the history
  • Loading branch information
benmezger committed Jun 27, 2021
1 parent d652302 commit f15e851
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions layouts/partials/docs/inject/footer.html
@@ -0,0 +1,8 @@
<center>
{{ $related := .Site.RegularPages.Related . | first 1 }}
{{ with $related }}
{{ range . }}
<h3>Go to <a href="{{ .RelPermalink }}">random</a> page</h3>
{{ end }}
{{ end }}
</center>

0 comments on commit f15e851

Please sign in to comment.