36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
{{- /* Continued from post-start.html */ -}}
|
|
{{ if .Param "photo" }}
|
|
{{ range $photo := .Param "photo" }}
|
|
{{ $image := resources.Get (strings.TrimPrefix $.Site.Params.RealBaseURL $photo.value) }}
|
|
{{ if eq $image nil }}
|
|
{{ $image = resources.GetRemote $photo.value }}
|
|
{{ end }}
|
|
{{ $image := $image.Fit "800x600" }}
|
|
<a href="{{ $photo.value }}">
|
|
<img src="{{ $image.RelPermalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" alt="{{ $photo.alt }}"
|
|
class="u-photo" />
|
|
</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
<a class="u-url" href="{{ .Permalink }}">
|
|
Published on <time class="dt-published" datetime="{{ .Date.Format " 2006-01-02T15:04:05Z" }}">
|
|
{{ .Date.Format "02 January, 2006" }}
|
|
</time>
|
|
{{ if .Lastmod | and (.Lastmod.After .Date) }}
|
|
, edited <time class="dt-updated" datetime="{{ .Lastmod.Format " 2006-01-02T15:04:05Z" }}">
|
|
{{ .Lastmod.Format "02 January, 2006" }}
|
|
</time>
|
|
{{ end }}
|
|
</a>
|
|
<ul>
|
|
{{ range $tag := .Param "tags" }}
|
|
<li>
|
|
<a href="/tags/{{ $tag }}">
|
|
#<span class="p-category">{{ $tag }}</span>
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</article>
|