Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Krombel add i18n #61

Merged
merged 11 commits into from
Mar 31, 2019
Prev Previous commit
Next Next commit
Fixed gallery images relative urls
  • Loading branch information
tomanistor committed Mar 28, 2019
commit acc681b5256210590e84401dcdedc6376461406e
8 changes: 4 additions & 4 deletions layouts/partials/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{ if eq $galleryTotal 1 }}
{{ range first 3 $galleryReverse }}
<div class="col-xs-12" onclick {{ if .Params.color }}style="background-color:{{ .Params.color }}"{{ end }}>
<img src="{{ .Params.image}}" {{ if .Params.alt }}alt="{{ .Params.alt }}"{{ end }}>
<img src="{{ "images/" | relURL }}{{ .Params.image}}" {{ if .Params.alt }}alt="{{ .Params.alt }}"{{ end }}>
<div class="row middle-xs center-xs overlay">
<div class="col-xs-12">
<h2>{{ .Title }}</h2>
Expand All @@ -27,7 +27,7 @@ <h2>{{ .Title }}</h2>
{{ if gt $galleryTotal 2 }}
{{ range first 3 $galleryReverse }}
<div class="col-xs-12 col-md-4" onclick {{ if .Params.color }}style="background-color:{{ .Params.color }}"{{ end }}>
<img src="{{ .Params.image}}" {{ if .Params.alt }}alt="{{ .Params.alt }}"{{ end }}>
<img src="{{ "images/" | relURL }}{{ .Params.image}}" {{ if .Params.alt }}alt="{{ .Params.alt }}"{{ end }}>
<div class="row middle-xs center-xs overlay">
<div class="col-xs-12">
<h2>{{ .Title }}</h2>
Expand All @@ -51,7 +51,7 @@ <h2>{{ .Title }}</h2>
{{ else }} col-lg-3
{{ end }}
{{ end }}" onclick {{ if .Params.color }}style="background-color:{{ .Params.color }}"{{ end }}>
<img src="{{ .Params.image}}" {{ if .Params.alt }}alt="{{ .Params.alt }}"{{ end }}>
<img src="{{ "images/" | relURL }}{{ .Params.image}}" {{ if .Params.alt }}alt="{{ .Params.alt }}"{{ end }}>
<div class="row middle-xs center-xs overlay">
<div class="col-xs-12">
<h2>{{ .Title }}</h2>
Expand All @@ -78,7 +78,7 @@ <h2>{{ .Title }}</h2>
{{ end }}
{{ end }}
{{ end }}" onclick {{ if .Params.color }}style="background-color:{{ .Params.color }}"{{ end }}>
<img src="{{ .Params.image}}" {{ if .Params.alt }}alt="{{ .Params.alt }}"{{ end }}>
<img src="{{ "images/" | relURL }}{{ .Params.image}}" {{ if .Params.alt }}alt="{{ .Params.alt }}"{{ end }}>
<div class="row middle-xs center-xs overlay">
<div class="col-xs-12">
<h2>{{ .Title }}</h2>
Expand Down