Browse Source

Japanese auto-translations V2 - photo posts - completion v 2

master
Jon Kelbie 5 months ago
parent
commit
2f2a01a59e
  1. 2
      themes/nipponalba/layouts/_default/section.html
  2. 4
      themes/nipponalba/layouts/_default/section.jp.html

2
themes/nipponalba/layouts/_default/section.html

@ -22,7 +22,7 @@
{{$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>
<a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{ .alt }}" alt="{{ .alt }}"/></a>
{{ 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}}

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

@ -23,9 +23,9 @@
{{ range .Page.Params.Photo }}
{{ if isset . "value" }}
{{ if isset . "altJP" }}
<a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{ $summary }}" alt="{{ .altJP }}"/></a>
<a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{ .altJP }}" 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>
<a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{ .alt }}" 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>

Loading…
Cancel
Save