Skip to content

Commit

Permalink
move scripts loading to the bottom of HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
stebunovd committed Dec 20, 2024
1 parent 0caf4e1 commit 262cf6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layouts/blog/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
{{ end }}

{{- define "main" }}
<script type="module">
import '/js/prettify.js';
import '/js/lightbox.js';
</script>
<div class="page article">
<div class="article--back">
<a class="article--back-link" href="/blog/">
Expand Down Expand Up @@ -63,5 +59,9 @@ <h1 class="article--title">{{ .Title }}</h1>
{{- end }}

{{- define "footer" }}
<script type="module">
import '/js/prettify.js';
import '/js/lightbox.js';
</script>
{{ partial "blog-footer.html" . }}
{{- end }}

0 comments on commit 262cf6b

Please sign in to comment.