Add tag shortcode
This commit is contained in:
parent
c4c3f3e03e
commit
07c2d4118a
@ -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>
|
||||
|
2
layouts/shortcodes/tag.html
Normal file
2
layouts/shortcodes/tag.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user