hugo-simple-icons

1.0.0 • Public • Published

hugo-simple-icons

Hugo module to easily use Simple Icons anywhere in your site.

Installation

First, init your project as Hugo Module.:

hugo mod init github.com/<your-user>/<your-project>

Then edit your config file to import the module:

# config.toml
[module]
  [[module.imports]]
    path = "github.com/bradp/hugo-simple-icons"

Upating

To update all modules:

hugo mod get -u

You may need to run hugo mod clean if something isn't working right.

Usage

To any layout file, simple use this partial (replacing 'hugo' with your chosen icon.)

{{ partial "simple-icons/icon" "hugo" }}

To view all the icons & their names, you can go to <your-site>/simpleicons.

Enjoy!

Package Sidebar

Install

npm i hugo-simple-icons

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

3.98 kB

Total Files

10

Last publish

Collaborators

  • bradp