1
0
Fork 0

add js and html head bundles
Some checks failed
Build Blog / Build (push) Failing after 6m20s

This commit is contained in:
saji 2025-04-24 16:56:36 -05:00
parent 8cff085e59
commit 443347cad6
2 changed files with 21 additions and 18 deletions

View file

@ -18,6 +18,9 @@
<link rel="stylesheet" href="{% getBundleFileUrl "css" %}"> <link rel="stylesheet" href="{% getBundleFileUrl "css" %}">
<link rel="stylesheet" href="{% getBundleFileUrl "css", "defer" %}"> <link rel="stylesheet" href="{% getBundleFileUrl "css", "defer" %}">
<script src="{% getBundleFileUrl "js" %}"></script>
<script src="{% getBundleFileUrl "js", "module %}"></script>
{% getBundle "html", "head" %}
</head> </head>
<body> <body>
<a href="#skip" class="visually-hidden">Skip to main content</a> <a href="#skip" class="visually-hidden">Skip to main content</a>

View file

@ -27,9 +27,6 @@ export default async function (eleventyConfig) {
"./node_modules/reveal.js/plugin/": "/revealjs-plugins/", "./node_modules/reveal.js/plugin/": "/revealjs-plugins/",
}); });
// Run Eleventy when these files change:
// https://www.11ty.dev/docs/watch-serve/#add-your-own-watch-targets
// Watch content images for the image pipeline. // Watch content images for the image pipeline.
eleventyConfig.addWatchTarget("content/**/*.{svg,webp,png,jpeg}"); eleventyConfig.addWatchTarget("content/**/*.{svg,webp,png,jpeg}");
@ -146,7 +143,6 @@ export default async function (eleventyConfig) {
// return `<section data-transition=${transition}> ${mdIt.renderInline(content)} </section>`; // return `<section data-transition=${transition}> ${mdIt.renderInline(content)} </section>`;
//}) //})
// //
// Paired shortcode for callout
eleventyConfig.addPairedShortcode("callout", function(content) { eleventyConfig.addPairedShortcode("callout", function(content) {
// The 'content' variable holds the text/HTML placed between // The 'content' variable holds the text/HTML placed between
// {% callout %} and {% endcallout %} // {% callout %} and {% endcallout %}
@ -154,6 +150,10 @@ export default async function (eleventyConfig) {
return `<div class="callout">${content}</div>`; return `<div class="callout">${content}</div>`;
}); });
eleventyConfig.addBundle("css");
eleventyConfig.addBundle("js");
eleventyConfig.addBundle("html");
// Features to make your build faster (when you need them) // Features to make your build faster (when you need them)
// If your passthrough copy gets heavy and cumbersome, add this line // If your passthrough copy gets heavy and cumbersome, add this line