Skip to content

Commit 88329f8

Browse files
author
linuxjava7
committed
fix non loading
1 parent 2dacec6 commit 88329f8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

_includes/layouts/base.njk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@
8686
Built with <a href="https://www.11ty.dev/">{{ eleventy.generator }}</a></em>
8787
</p>
8888
</footer>
89-
90-
<script>{% include "javascript/animation.js" %}</script>
91-
89+
<script src="/js/animation.js" defer></script>
9290
<!-- This page `{{ page.url }}` was built on {% currentBuildDate %} -->
9391
<script type="module" src="{% getBundleFileUrl "js" %}"></script>
92+
9493
</body>
9594
</html>

eleventy.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export default async function (eleventyConfig) {
2424
.addPassthroughCopy({
2525
"./public/": "/",
2626
})
27-
.addPassthroughCopy("./content/feed/pretty-atom-feed.xsl");
27+
.addPassthroughCopy("./content/feed/pretty-atom-feed.xsl")
28+
.addPassthroughCopy("./js");
2829

2930
// Run Eleventy when these files change:
3031
// https://www.11ty.dev/docs/watch-serve/#add-your-own-watch-targets
File renamed without changes.

0 commit comments

Comments
 (0)