Giter Club home page Giter Club logo

bootstrap's People

Contributors

github-actions[bot] avatar pleasantone avatar razonyang avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bootstrap's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/release-please.yml
  • google-github-actions/release-please-action v4
gomod
go.mod
  • go 1.19
  • github.com/hugomods/base v0.6.0
  • github.com/hugomods/icons/vendors/bootstrap v0.5.6
  • github.com/hugomods/images v0.10.1
npm
package.json
  • prettier-plugin-go-template ^0.0.15

  • Check this box to trigger a request for Renovate to run again on this repository

img-grid occasionally fails to find file -- seems like being resolved by wrong page

Scenario:

I use {{< bs/img-grid "attendees.yaml" >}} to build an image grid of photos of people attending an event on a page.
The images are stored in the page bundle, in a subdirectory e.g. attendess/foo.jpg.

Anomaly:
Page always builds correctly in production.
Sometimes, in development, e.g. if one edited that page bundle's index.md, the images are not found.
If one triggers a rebuild, they will often be found.
github.com/hugomods/images/layouts/partials/images/image.html reports that the images that were part of the page resources was not found.

Analysis:
By adding some debugging, I've determined that when things have failed, it has occurred because image.html's $page variable is Page(/_index.md) not Page(/events/2024-baja-mexico/index.md) (the proper page).

Strongly enough, the call to GitHub.com/hugomods/bootstrap/layouts/partials/bootstrap/img-grid.html (one level up in the call stack) is always called with the proper Page set.

Here's my debugging output when it fails:

WARN  DATA: page=Page(/events/2024-baja-mexico/index.md) key=attendees data=[map[src:attendees/mug_mattgor.jpg title:Matt "Gecko" Gordon] map[src:attendees/mug_stuart.jpg title:Uncle Stu] map[src:attendees/mug_ian.jpg title:Ian] map[src:attendees/mug_hunt.jpg title:Huntley] map[src:attendees/mug_ich.jpg title:Ichabod] map[src:attendees/mug_raj.jpg title:Raj] map[src:attendees/mug_eminem.jpg title:Mike] map[src:attendees/mug_jake.jpg title:Jake] map[src:attendees/mug_milo.jpg title:Milo] map[src:attendees/mug_holland.jpg title:Holland Ja (unconfirmed)] map[src:attendees/mug_matthanley.jpg title:Matt Hanley (2 days)] map[src:attendees/mug_tuggle.jpg title:Steve Tuggle (2 days)] map[src:attendees/mug_charles.jpg title:Charles (unconfirmed)] map[src:attendees/mug_dan.jpg title:Dan G (unconfirmed)]]

WARN  looking for page resources getmatch path=attendees/mug_mattgor.jpg page=Page(/_index.en.md) res=<nil>
WARN  image not found: attendees/mug_mattgor.jpg
WARN  looking for page resources getmatch path=attendees/mug_stuart.jpg page=Page(/_index.en.md) res=<nil>
WARN  image not found: attendees/mug_stuart.jpg
...

Here is my debugging when it succeeded:

WARN  DATA: page=Page(/events/2024-baja-mexico/index.md) key=attendees data=[map[src:attendees/mug_mattgor.jpg title:Matt "Gecko" Gordon] map[src:attendees/mug_stuart.jpg title:Uncle Stu] map[src:attendees/mug_ian.jpg title:Ian] map[src:attendees/mug_hunt.jpg title:Huntley] map[src:attendees/mug_ich.jpg title:Ichabod] map[src:attendees/mug_raj.jpg title:Raj] map[src:attendees/mug_eminem.jpg title:Mike] map[src:attendees/mug_jake.jpg title:Jake] map[src:attendees/mug_milo.jpg title:Milo] map[src:attendees/mug_holland.jpg title:Holland Ja (unconfirmed)] map[src:attendees/mug_matthanley.jpg title:Matt Hanley (2 days)] map[src:attendees/mug_tuggle.jpg title:Steve Tuggle (2 days)] map[src:attendees/mug_charles.jpg title:Charles (unconfirmed)] map[src:attendees/mug_dan.jpg title:Dan G (unconfirmed)]]
WARN  looking for page resources getmatch path=attendees/mug_mattgor.jpg page=Page(/events/2024-baja-mexico/index.md) res=attendees/mug_mattgor.jpg
WARN  looking for page resources getmatch path=attendees/mug_stuart.jpg page=Page(/events/2024-baja-mexico/index.md) res=attendees/mug_stuart.jpg

My best guess is that something is partialCached when it shouldn't be, but this is really weird.. the page in question is just using a standard shortcut...

Full source code at https://github.com/goattrails/hb-goattrails/blob/main/content/events/2024-baja-mexico/index.md

My debugging diffs:
bootstrap.patch
images.patch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.