main
Gabriel 12 months ago
parent 74d5fc2cbb
commit e357c1515b

@ -3,8 +3,7 @@
<img src='{{.Get 3}}'>
{{end}}
<div>
<h3>{{ .Get 1 }}</h3>
<p>{{.Get 2 }}</p>
<h3>{{ .Get 1 }}</h3>
<p>{{.Get 2 }}</p>
</div>
</a>
</a>

@ -0,0 +1,44 @@
# Shortcodes
My hugo shortcodes for all my themes
## Themes
- [Freedom](https://code.gabe.rocks/gabriel/freedom)
- [Valor](https://code.gabe.rocks/gabriel/valor)
### Audio
Embeds an audio player for an audio source
### Embed
Embeds an URL
### Gallery-(start/end)
Starts and closes a `div` element with the class `gallery`
### gif
A muted video with autoplay and no controls
### image
An image, optionally includes links and captions
### link-preview
A fancy preview for links
### pdf
Embeds a pdf
### recent-items
### relevant-items
### video
A video player with controls

@ -0,0 +1,5 @@
<div class="gallery">
{{range first 3 .Site.RegularPages}}
{{partial "item" .}}
{{end}}
</div>

@ -0,0 +1,7 @@
<div class="gallery">
{{ $tag := .Get 0 }}
{{range .Site.RegularPages.RelatedTo (keyVals "tags" $tag) }}
{{partial "item" .}}
{{end}}
</div>
Loading…
Cancel
Save