set class of img
This commit is contained in:
parent
f1cd2d3635
commit
3c250aaedb
|
@ -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>
|
||||
`
|
||||
|
|
Loading…
Reference in New Issue
Block a user