15 lines
431 B
HTML
15 lines
431 B
HTML
{{ define "main" }}
|
|
<h1>{{ .Page.Title }}</h1>
|
|
|
|
{{ if and (isset .Params "image") .Params.image }}
|
|
{{ $image := .Page.Resources.GetMatch .Params.image }}
|
|
{{ with $image }}
|
|
{{ $thumb := .Resize "1000x" }}
|
|
{{ printf `<img src="%s" alt="%s" class="img-responsive gallery-image">` $thumb.RelPermalink .Title | safeHTML }}
|
|
{{end}}
|
|
{{ end }}
|
|
|
|
{{ .Content }}
|
|
{{ template "_internal/disqus.html" . }}
|
|
|
|
{{ end }} |