Add tag shortcode

This commit is contained in:
nemunaire 2023-03-24 14:56:10 +01:00
parent c4c3f3e03e
commit 07c2d4118a
2 changed files with 17 additions and 0 deletions

View File

@ -1 +1,16 @@
<script async defer data-website-id="352216d2-431a-4da4-854c-0542e83eec1e" src="https://pythagore.p0m.fr/pythagore.js"></script>
<style>
.tag {
background-color: lightgray;
border-radius: 25px;
display: inline-block;
padding: 0 5px;
font-size: 90%;
}
.tag:hover {
background-color: darkgray;
}
.tag::before {
content: "#";
}
</style>

View File

@ -0,0 +1,2 @@
{{ $_hugo_config := `{ "version": 1 }` }}
<div class="tag {{ .Get 0 }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}>{{ .Inner }}</div>