Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1014 Bytes

File metadata and controls

35 lines (28 loc) · 1014 Bytes

Hugo shortcode to render Badge

The badge Hugo shortcode renders Badgen supported badges from in markdown text.

Usage

Include this in your Hugo config.yaml:

module:
  imports:
    - path: github.com/netspective-studios/hugo-shortcode-badge
      mounts:
        - source: shortcodes
          target: layouts/shortcodes

If you are using config.toml in Hugo

[[module.imports]]
path                              = "github.com/netspective-studios/hugo-shortcode-badge"

[[module.imports.mounts]]
source                            = "shortcodes"
target                            = "layouts/shortcodes"

Sample

{{< badge renderHost="https://badgen.infra.medigy.com" subject="Community%20of%20Practice" status="Join" color="green" scale="1.5" icon="github" >}}

Sample HTTPS Service (upvote-count)

{{< badge renderHost="https://badgen.infra.medigy.com" httpsService="true" serviceRequestFor="upvote-count" offeringIdentifier="9465" >}}