hugomods / icons Goto Github PK
View Code? Open in Web Editor NEW:art: Hugo SVG Icons Module that compatible any SVG image vendors, i.e. Bootstrap, Font Awesome, Simple Icons.
Home Page: https://icons.hugomods.com
License: MIT License
:art: Hugo SVG Icons Module that compatible any SVG image vendors, i.e. Bootstrap, Font Awesome, Simple Icons.
Home Page: https://icons.hugomods.com
License: MIT License
There are differences between how SVGs are being displayed based on how I display them for some reason. One is low detail (even missing the map's pin dot), one is normal. Both are the same SVG from Taber Icons (it happens with them all though, at least all from Tabler Icons)
Most of icons are sized in square, use size
instead of width
and height
.
Hi there,
and thanks for sharing this module.
I've been working on a related project, and you may find some interesting bits, like unamed parameters, custom CSS classes or injection of aria-hidden="true"
in each loaded SVG
See this post for details, cheers!
icons:
className: hi-inline-svg
width: 1rem
height: 1rem
Hi, and thanks for creating this hugo module :)
I've run into a problem when using github.com/hugomods/icons/vendors/font-awesome as a module. My build system (nix) does not allow downloading anything during a build, so the dependencies need to be vendored. But when I use hugo mod vendor
, I get the following error:
Error: cannot vendor module "github.com/hugomods/font-awesome", need at least one mount
This also happens when I manually put this in my hugo.toml
[module]
[[module.imports]]
path = 'github.com/hugomods/font-awesome'
[[module.imports.mounts]]
source = "svg/brands"
target = "assets/icons/font-awesome-brands"
[[module.imports.mounts]]
source = "svg/solid"
target = "assets/icons/font-awesome-solid"
[[module.imports]]
path = 'github.com/hugomods/icons'
I also found that this seems to be a more common problem with Hugo/Go (see gohugoio/hugo#10123)
I'm unsure how to work around this since I am not very familiar with Go module internals. Is there a way to create a mount that makes hugo mod vendor
happy?
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.
.github/workflows/release-please.yml
google-github-actions/release-please-action v4
go.mod
go 1.18
vendors/bootstrap/go.mod
go 1.18
github.com/hugomods/icons v0.6.3
github.com/twbs/icons v1.11.3
vendors/feather/go.mod
go 1.18
github.com/feathericons/feather v4.29.2+incompatible
github.com/hugomods/icons v0.6.3
vendors/flag/go.mod
go 1.18
vendors/font-awesome/go.mod
go 1.18
github.com/hugomods/font-awesome v6.5.2+incompatible
github.com/hugomods/icons v0.6.3
vendors/lucide/go.mod
go 1.18
github.com/hugomods/icons v0.6.3
github.com/hugomods/lucide-icons v0.331.0
vendors/mdi/go.mod
go 1.18
github.com/Templarian/MaterialDesign-SVG v7.4.47+incompatible
github.com/hugomods/icons v0.6.3
vendors/simple-icons/go.mod
go 1.18
github.com/hugomods/icons v0.6.3
github.com/hugomods/simple-icons v12.0.0+incompatible
vendors/tabler/go.mod
go 1.18
github.com/hugomods/icons v0.6.3
github.com/tabler/tabler-icons v3.5.0+incompatible
package.json
prettier ^3.0.0
prettier-plugin-go-template ^0.0.15
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.