Browse Source

Japanese auto-translations V2 - photo posts

master
Jon Kelbie 5 months ago
parent
commit
3247d4d246
  1. 6
      themes/nipponalba/layouts/_default/single.jp.html

6
themes/nipponalba/layouts/_default/single.jp.html

@ -16,7 +16,11 @@
<section class="photogrid">
{{ range .Page.Params.Photo }}
{{ if isset . "value" }}
<a href="{{ .value }}"><img class="u-photo" src="{{ .value }}" alt="{{ .alt }}" title="{{ .alt }}"/></a>
{{ if isset . "altJP" }}
<a href="{{ .value }}"><img class="u-photo" src="{{ .value }}" alt="{{ .altJP }}" title="{{ .altJP }}"/></a>
{{ else }}
<a href="{{ .value }}"><img class="u-photo" src="{{ .value }}" alt="{{ .alt }}" title="{{ .alt }}"/></a>
{{ end }}
{{ else }}
<a href="{{ . }}"><img class="u-photo" src="{{ . }}" alt=" Trying to fix"/></a>
{{end}}

Loading…
Cancel
Save