Git Product home page Git Product logo

hugomods / icons Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 3.0 234 KB

: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

HTML 100.00%
hugo-icons hugo-icon hugo-mod hugo-module hugo-mod-icons bootstrap-icons feather-icons fontawesome-icons material-design-icons simple-icons

icons's Introduction

Hugo Icons Module

Documentation Used By Hugo Requirements License Version

icons's People

Contributors

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

icons's Issues

SVG display difference issue

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)

See the differences. They should be identical.
screen

Here is how they are displayed.
code

Get some inspiration from this related project

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!

"Need at least one mount" when trying to vendor fontawesome

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?

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.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
npm
package.json
  • prettier ^3.0.0
  • prettier-plugin-go-template ^0.0.15

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

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.