-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified: eleventy.config.js uncommenting L35 of eleventy.config.js `eleventy-img/*.webc` breaks build ```diff + eleventyConfig.addPlugin(pluginWebc, { + components: [ + "./_components/**/*.webc", + // "npm:@11ty/eleventy-img/*.webc", + ], + }); ``` > [11ty] Original error stack trace: Error: Check the webc:type="js" element in ./content/archive/fourthpost/fourthpost.md. > [11ty] Original error message: Cannot read properties of undefined (reading 'directories') Seems like it is getting hung up here: https://github.com/11ty/eleventy-img/blob/main/eleventy-image.webc#L72-L81 modified: content/archive/fourthpost/fourthpost.md ```diff -{% image "./possum.png", "A possum parent and two possum kids hanging from the iconic red balloon" %} +<img webc:is="eleventy-image" width="288,350" sizes="100vw" src="/img/possum.png" formats="avif,webp,png" alt="A possum parent and two possum kids hanging from the iconic red balloon"> ``` modified: package.json added webc plugin new file: _components/html/h2.webc new file: _components/html/h3.webc new file: _components/html/h4.webc new file: _components/html/heading.css renamed: content/archive/fourthpost/possum.png -> public/img/possum.png
- Loading branch information
Showing
8 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<link rel="stylesheet" href="heading.css"> | ||
<script webc:type="js" webc:root="override"> | ||
let slug = slugify(slots.text.default); | ||
`<h2 id="${slug}"> | ||
<a href="#${slug}" class="heading-link"><span aria-hidden="true">#</span><visually-hidden>anchor</visually-hidden></a> | ||
${slots.text.default} | ||
</h2>` | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<link rel="stylesheet" href="heading.css"> | ||
<script webc:type="js" webc:root="override"> | ||
let slug = slugify(slots.text.default); | ||
`<h3 id="${slug}"> | ||
<a href="#${slug}" class="heading-link"><span aria-hidden="true">#</span><visually-hidden>anchor</visually-hidden></a> | ||
${slots.text.default} | ||
</h3>` | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<link rel="stylesheet" href="heading.css"> | ||
<script webc:type="js" webc:root="override"> | ||
let slug = slugify(slots.text.default); | ||
`<h4 id="${slug}"> | ||
<a href="#${slug}" class="heading-link"><span aria-hidden="true">#</span><visually-hidden>anchor</visually-hidden></a> | ||
${slots.text.default} | ||
</h4>` | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.heading-link { | ||
font-size: 1.125rem; /* 18px /16 */ | ||
text-decoration: none; | ||
padding: .1em .2em .1em 0; | ||
} | ||
@media (min-width: 43.75em) { /* 700px */ | ||
page-layout-sidebar .heading-link { | ||
margin-left: -1.222222222222rem; /* -22px /18 */ | ||
} | ||
} | ||
a.heading-link[href], | ||
a.heading-link[href]:visited { | ||
color: var(--color-accent); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes