pollux.codes

Files for the pollux.codes site
git clone git://pollux.codes/git/pollux.codes.git
Log | Files | Refs

single.html (474B)


      1 {{ define "main" }}
      2 {{ $file := printf "artwork/%s" .Params.file }}
      3 {{ $image := resources.GetMatch $file }}
      4 {{ $sizemb := (div (div (len $image.Content) 104858) 10.0) }}
      5 <h1>{{ .Title }}</h1>
      6 <p><i>{{ $image.Width }}x{{ $image.Height }}, {{ $sizemb }}MiB</i>{{ range .GetTerms "arttags" }}, <a href="{{ .RelPermalink }}">{{ lower .Title }}</a>{{ end }}</p>
      7 {{ .Content }}
      8 <a href="{{ $image.RelPermalink }}"><img src="{{ $image.RelPermalink }}" width="100%"></a>
      9 {{ end }}