hugo-theme-introduction/layouts/projects/single.html

39 lines
1.2 KiB
HTML
Raw Normal View History

2018-07-01 08:09:29 +00:00
{{ define "main" }}
<div class="container markdown top-pad">
2018-07-06 12:27:34 +00:00
{{ with .Resources.ByType "image" }}
2018-07-01 08:09:29 +00:00
<div class="has-text-centered">
2018-07-06 12:27:34 +00:00
{{ $moreThenOneImage := gt (len .) 1 }}
{{ if $moreThenOneImage }}
<div class="owl-carousel owl-theme">
{{ end }}
{{ range sort . "Params.weight" }}
{{ $image := .Resize "1000x" }}
{{ if $moreThenOneImage }}
<div class="item owl-height">
{{ end }}
<img src="{{ $image.RelPermalink }}" class="img-responsive" alt="{{ $image.Name }}">
{{ if $moreThenOneImage }}
</div>
{{ end }}
{{ end }}
{{ if $moreThenOneImage }}
</div>
{{ end }}
2018-07-01 08:09:29 +00:00
</div>
{{ end }}
{{ .Content }}
</div>
<!-- End post content -->
<div class="disqus">
{{ template "_internal/disqus.html" . }}
</div>
{{ end }}
2018-07-06 12:27:34 +00:00
{{ define "customCSS" }}
2018-07-19 13:33:29 +00:00
{{ partial "css/owlCarousel.html" . }}
2018-07-06 12:27:34 +00:00
{{ end }}
{{ define "customScripts" }}
2018-07-19 13:33:29 +00:00
{{ partial "js/owlCarousel.html" . }}
2018-07-06 12:27:34 +00:00
{{ end }}