Skip to content

netspective-studios/hugo-shortcode-badge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages