1
0
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
saji 443347cad6 add js and html head bundles
Some checks failed
Build Blog / Build (push) Failing after 6m20s
2025-04-24 16:56:36 -05:00
saji 8cff085e59 remove message box 2025-04-24 16:56:31 -05:00
3 changed files with 21 additions and 36 deletions

View file

@ -18,6 +18,9 @@
<link rel="stylesheet" href="{% getBundleFileUrl "css" %}">
<link rel="stylesheet" href="{% getBundleFileUrl "css", "defer" %}">
<script src="{% getBundleFileUrl "js" %}"></script>
<script src="{% getBundleFileUrl "js", "module %}"></script>
{% getBundle "html", "head" %}
</head>
<body>
<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/",
});
// 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.
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>`;
//})
//
// Paired shortcode for callout
eleventyConfig.addPairedShortcode("callout", function(content) {
// The 'content' variable holds the text/HTML placed between
// {% callout %} and {% endcallout %}
@ -154,6 +150,10 @@ export default async function (eleventyConfig) {
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)
// If your passthrough copy gets heavy and cumbersome, add this line

View file

@ -1,18 +0,0 @@
/* Message Box */
.message-box {
--color-message-box: #ffc;
display: block;
background-color: var(--color-message-box);
color: var(--color-gray-90);
padding: 1em 0.625em; /* 16px 10px /16 */
}
.message-box ol {
margin-top: 0;
}
@media (prefers-color-scheme: dark) {
.message-box {
--color-message-box: #082840;
}
}