set class of img

This commit is contained in:
gutmet 2020-05-25 21:44:32 +02:00
parent f1cd2d3635
commit 3c250aaedb

View File

@ -47,7 +47,7 @@ h1 {
{{if .Links}}{{range $index, $link := .Links}}<a href="{{$link.Path}}">{{$link.Name}}</a><br>{{if $link.Space}}<br>{{end}}{{end}}{{end}}
{{if .Images}}{{range $index, $img := .Images}}<a href="../{{$img.FilenameMedium}}"><img src="../{{$img.FilenameSmall}}" /></a>{{if $.Artsy}}<br><br>{{end}}{{end}}{{end}}
{{if .Images}}{{range $index, $img := .Images}}<a href="../{{$img.FilenameMedium}}"><img src="../{{$img.FilenameSmall}}" class="gallery" /></a>{{if $.Artsy}}<br><br>{{end}}{{end}}{{end}}
</div>
<br><br>
@ -59,9 +59,13 @@ h1 {
const mdTemplate = `---
title: {{.Title}}
---
<div class="gallery">
{{if .Links}}{{range $index, $link := .Links}}<a href="{{$link.Path}}">{{$link.Name}}</a><br>{{if $link.Space}}<br>{{end}}{{end}}{{end}}
{{if .Images}}{{range $index, $img := .Images}}<a href="../{{$img.FilenameMedium}}"><img src="../{{$img.FilenameSmall}}" /></a>{{if $.Artsy}}<br><br>{{end}}{{end}}{{end}}
{{if .Images}}{{range $index, $img := .Images}}<a href="../{{$img.FilenameMedium}}"><img src="../{{$img.FilenameSmall}}" class="gallery" /></a>{{if $.Artsy}}<br><br>{{end}}{{end}}{{end}}
</div>
<br><br>
<a href="{{.Back.Path}}">{{.Back.Name}}</a>
`