Browse Source

Japanese auto-translations V2 - photo posts - completion

master
Jon Kelbie 5 months ago
parent
commit
94197b0f86
  1. 6
      themes/nipponalba/layouts/_default/section.jp.html
  2. 6
      themes/nipponalba/layouts/index.jp.html

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

@ -22,7 +22,11 @@
{{$summary := .Content}}
{{ range .Page.Params.Photo }}
{{ if isset . "value" }}
<a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{ $summary }}" alt="{{ .alt }}"/></a>
{{ if isset . "altJP" }}
<a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{ $summary }}" alt="{{ .altJP }}"/></a>
{{ else }}
<a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{ $summary }}" alt="{{ .alt }}"/></a>
{{ end }}
{{ else }}
<a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace . "800." "300."}}" title="{{ $summary }}" alt="Alt not yet added, will fix!"/></a>
{{end}}{{end}}

6
themes/nipponalba/layouts/index.jp.html

@ -35,7 +35,11 @@
{{ range first 1 .Page.Params.Photo }}
<figure class="index-photos">
{{ if isset . "value" }}
<img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{$summary}}" alt="{{ .alt }}"/>
{{ if isset . "altJP" }}
<img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{$summary}}" alt="{{ .altJP }}"/>
{{ else }}
<img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{$summary}}" alt="{{ .alt }}"/>
{{ end }}
{{ else }}
<img class="u-photo thumb" src="{{ replace . "800." "300."}}" title="{{$summary}}" alt="Alt not yet added, will fix!"/>
{{ end }}

Loading…
Cancel
Save