bowman2001 / hugo-mod-image Goto Github PK
View Code? Open in Web Editor NEWDefine image formats with CSS class names, handle retrieval and processing, and deliver with lazysizes
License: Apache License 2.0
Define image formats with CSS class names, handle retrieval and processing, and deliver with lazysizes
License: Apache License 2.0
Extract the values. There are two general ways to parse the SVG content as far as I can see:
We need to collect and maybe calculate the values (viewBox) for the width and height.
Add them to the image tag.
This is a regression. Introduced the bug in the modification of the id parameter processing.
When we use a list view of pages which include images, the images are still processed per page. Hugo doesn’t know they end up in a list and can process these pages in parallel, too.
This can lead to duplicate IDs. There should be a simple switch for the generation of IDs.
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.
exampleSite/go.mod
go 1.21.6
go.mod
go 1.21.6
package.json
lazysizes ^5.3.2
Using the same type of footer configuration as you have with perplexdoc, I am getting warnings that 'id' is being duplicated for the footer images. I have verified that it is the Markdown images in the footer columns that are all getting id 1
.
E.g.
<h2>Theme</h2>
<figure class="fig fig--w-text" id="fig-1"><a aria-label="Perplex logo" class="img__frame img__frame--bg-light img__frame--box-shadow img__frame--pad-half" href="https://github.com/bowman2001/perplex">
and
<h2>Content</h2>
<figure class="fig fig--w-tiny" id="fig-1">
<a aria-label="Creative Commons 4.0 logo" class="img__frame img__frame--bg-light img__frame--box-shadow img__frame--pad-half" href="https://creativecommons.org/licenses/by-sa/4.0/" style="display: flex; justify-content: center; align-items: center">
This appears to be happening here:
I don't see where the ordinal gets set via markdown hook before this code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.