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

37 lines
1.1 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-15 21:10:01 +00:00
{{ $moreThanOneImage := gt (len .) 1 }}
{{ if $moreThanOneImage }}
2018-07-06 12:27:34 +00:00
<div class="owl-carousel owl-theme">
{{ end }}
{{ range sort . "Params.weight" }}
{{ $image := .Resize "1000x" }}
2018-07-15 21:10:01 +00:00
{{ if $moreThanOneImage }}
2018-07-06 12:27:34 +00:00
<div class="item owl-height">
{{ end }}
<img src="{{ $image.RelPermalink }}" class="img-responsive" alt="{{ $image.Name }}">
2018-07-15 21:10:01 +00:00
{{ if $moreThanOneImage }}
2018-07-06 12:27:34 +00:00
</div>
{{ end }}
{{ end }}
2018-07-15 21:10:01 +00:00
{{ if $moreThanOneImage }}
2018-07-06 12:27:34 +00:00
</div>
{{ end }}
2018-07-01 08:09:29 +00:00
</div>
{{ end }}
{{ .Content }}
</div>
<!-- End post content -->
{{ partial "comments.html" . }}
2018-07-01 08:09:29 +00:00
{{ 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 }}