Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

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" >}}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages