Skip to content

Commit

Permalink
fix: sw.js & footnote link
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Aug 17, 2019
1 parent 1cea454 commit 9e7589b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions assets/scss/_common/single.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ ol.toc {
.footnotes {
font-size: 90%;
padding: ($fontSize * 5) 0 0;
a {
text-decoration: underline;
}
hr {
margin: 0;
height: 1px;
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/script.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
{{ end }}
{{ end }}

{{ if .Site.Params.enableServiceWorker }}
{{ if and .Site.Params.enableServiceWorker (eq hugo.Environment "production") }}
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
Expand Down

0 comments on commit 9e7589b

Please sign in to comment.