Skip to content

Commit

Permalink
add back-to-top button #15
Browse files Browse the repository at this point in the history
Signed-off-by: weru <[email protected]>
  • Loading branch information
onweru committed May 6, 2021
1 parent f829e27 commit bb1b1f6
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 @@ -3,7 +3,7 @@
<head>
{{- partial "head" . }}
</head>
<body class="page-{{ .Kind }}">
<body class="page-{{ .Kind }}" id="pagetop">
<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 bb1b1f6

Please sign in to comment.