hugo-theme/layouts/photos/single.html

28 lines
477 B
HTML
Raw Normal View History

2024-03-01 21:02:34 +00:00
{{ partial "header.html" . }}
{{ partial "nav.html" . }}
<div class="content">
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ $path := .Page.File.Path | strings.TrimSuffix (path.Ext .Page.File.Path) }}
{{ $images := where (resources.Match "photos/test1/*" ) "ResourceType" "eq" "image" }}
2024-03-02 01:50:04 +00:00
<div class="gallery">
{{ range $images }}
<div class="gallery-item">
<img src="{{ .RelPermalink }}" />
</div>
{{ end }}
</div>
2024-03-01 21:02:34 +00:00
</div>
{{ partial "footer.html" . }}