Skip to content

Commit

Permalink
moved js to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
dhonus committed Jan 7, 2024
1 parent 93038de commit e641df8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ paginate = 12
icon = "favicon.png"
name = "Tofu Dreams"
description = "Vegan recipes to dream about"


2 changes: 2 additions & 0 deletions themes/bean/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
This website doesn't track you. ❤️</p>
</footer>

<script defer language="javascript" type="text/javascript" src="{{ "/js/screen.js" | urlize | relURL }}"></script>

<script> // let's save the state of checkboxes, so that we can reload the site
function saveCheckboxesState() {
const page_url = window.location.href;
Expand Down
1 change: 0 additions & 1 deletion themes/bean/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
{{ $css = $css | resources.ToCSS }}
<link rel="stylesheet" type="text/css" href="{{ $css.Permalink }}?{{ printf "%.12s" (md5 $seed) }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{.Site.BaseURL}}{{ .Site.Params.icon }}">
<script defer language="javascript" type="text/javascript" src="{{ "/js/screen.js" | urlize | relURL }}"></script>
<link rel="alternate" type="application/rss+xml" href="{{.Site.BaseURL }}/index.xml" title="{{ .Site.Title }}">
{{ partial "schema.html" . }}
</head>

0 comments on commit e641df8

Please sign in to comment.