11ty / 11ty/webc

Remote URL sources not supported?

Open
#133 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

education stale
Dominant language
JavaScript
Stars
1.4k
Forks
46
Avg merge
10m
Merged PRs (30d)
2

Description

I'm getting a 404 for images in this:

{# _components/site-hero.webc #}

<template webc:type="11ty" 11ty:type="njk">
  <div class="hero">
      <picture>
        <source
        media="(max-width: 280px)"
        sizes="(max-width: 640px) 100vw, 640px"
        srcset="
        https://files.cdn.com/assets/images/{{ folder_hero_images }}/webp/portrait/320.webp 320w,
        etc...
<link webc:bucket="hero" rel="stylesheet" href="../assets/css/components/hero.min.css">
</template>
{# index.njk #}

{% renderTemplate "webc" %}
<site-hero></site-hero>
<style @raw="getBundle('css', 'hero')" webc:keep></style>
{% endrenderTemplate %}

Does it have to do with issues/15?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the remote image URLs and template usage in _components/site-hero.webc and index.njk, then compare the behavior with the related issues/15 discussion. Reproduce the 404 and determine whether remote URL sources are supported; document the behavior or identify the specific failure so the issue has a clear resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.