Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebC introduction #40

Closed
wants to merge 4 commits into from
Closed

WebC introduction #40

wants to merge 4 commits into from

Commits on Jul 22, 2024

  1. WIP WebC introduction

    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
    rdela committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    a85bbef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    35cf72e View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. WIP post.njk to webc conversion, log collison template bugs

    _components/html/h2.webc: `console.log(slots.text.default);`
    
    See 11ty/webc#151 for more on collisions
    rdela committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    02c3b31 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5b9f812 View commit details
    Browse the repository at this point in the history