Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 895 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 895 Bytes

Icon Extractor for template

A small tool to generate inline-svg in template.

  • Parser
  • Extractor
  • Generator

Usage

Options:
      --version  Show version number                                   [boolean]
  -h             Show help                                             [boolean]
  -s, --source   template source dir                   [required] [default: "."]
  -t, --type                                                   [choices: "hugo"]
  -o, --output                                                        [required]
  -i, --icon     icon type        [choices: "fontawesome", "ionicon", "feather"]

Hugo

You can write icon in the template like below, then run this cli to generated inline-svg:

{{ partial "icons" "logo-twitter" }}

LICENSE

Released under the MIT License.