Skip to content

Commit e48bcbc

Browse files
committed
Add zn.min to assets dir
1 parent f8bf017 commit e48bcbc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/_includes/default.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<link rel="stylesheet" href="{{ assetUrl('styles/search.css') }}"/>
3131

3232
{# Zinc #}
33-
<script type="module" src="/dist/zn.min.js"></script>
34-
<link rel="stylesheet" href="/dist/zn.min.css"/>
33+
<script type="module" src="{{ assetUrl('scripts/zn.min.js') }}"></script>
34+
<link rel="stylesheet" href="{{ assetUrl('styles/zn.min.css') }}"/>
3535

3636
{# Scripts #}
3737
<script src="{{ assetUrl('scripts/turbo.js') }}" type="module"></script>

docs/eleventy.config.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ module.exports = function (eleventyConfig)
4848
// Copy assets
4949
//
5050
eleventyConfig.addPassthroughCopy(assetsDir);
51+
eleventyConfig.addPassthroughCopy({'../dist/zn.min.js': 'assets/scripts/zn.min.js'});
52+
eleventyConfig.addPassthroughCopy({'../dist/zn.min.css': 'assets/styles/zn.min.css'});
5153
eleventyConfig.setServerPassthroughCopyBehavior('passthrough'); // emulates passthrough copy during --serve
5254

5355
//

0 commit comments

Comments
 (0)