Skip to content

Commit

Permalink
add back-to-top button onweru#15
Browse files Browse the repository at this point in the history
Signed-off-by: weru <[email protected]>
  • Loading branch information
onweru authored and hupfdule committed May 25, 2023
1 parent 6c00ffa commit f501407
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{- $codeLineNumbers = false }}
{{ end }}
{{ end }}
<body class="page-{{ .Kind }}" data-code="{{ $maxCodeLines }}" data-lines="{{ $codeLineNumbers }}">
<body class="page-{{ .Kind }}" id="pagetop" data-code="{{ $maxCodeLines }}" data-lines="{{ $codeLineNumbers }}">
<header class="nav_header">
{{- partial "nav" . }}
</header>
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<div class="wrap">
{{- $author := site.Params.author }}
<p>&copy; <span class="year">{{ now.Year }}</span>{{ with $author }} <a href ="{{ .url }}" target="_blank" rel="noopener">{{ .name }}</a>{{ end }}</p>
<a href="#pagetop" id="toTop" title={{ T "to_top" }}></a>
</div>
</footer>
{{ end }}
Expand Down

0 comments on commit f501407

Please sign in to comment.