Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/badge.html')
-rw-r--r--layouts/shortcodes/badge.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/shortcodes/badge.html b/layouts/shortcodes/badge.html
new file mode 100644
index 0000000..d3a106f
--- /dev/null
+++ b/layouts/shortcodes/badge.html
@@ -0,0 +1 @@
+<span {{ with .Get "href" }} onclick="location.href='{{.}}'"{{end}} {{ if .Get "ref" }} onclick="location.href='{{relref . (.Get "ref") }}'"{{end}} class="badge badge-{{ if .IsNamedParams }}{{with .Get `theme`}}{{.}}{{else}}primary{{end}}{{else}}{{with .Get 0}}{{.}}{{else}}primary{{end}}{{end}}">{{.Inner | markdownify}}</span> \ No newline at end of file