mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-26 16:32:53 +00:00
29aa348daa
This way it's much easier to tune the comment handling in general (like disable it for some sections) or integrate a different commenting system than disqus.
36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
{{ define "main" }}
|
|
<div class="container markdown top-pad">
|
|
{{ with .Resources.ByType "image" }}
|
|
<div class="has-text-centered">
|
|
{{ $moreThanOneImage := gt (len .) 1 }}
|
|
{{ if $moreThanOneImage }}
|
|
<div class="owl-carousel owl-theme">
|
|
{{ end }}
|
|
{{ range sort . "Params.weight" }}
|
|
{{ $image := .Resize "1000x" }}
|
|
{{ if $moreThanOneImage }}
|
|
<div class="item owl-height">
|
|
{{ end }}
|
|
<img src="{{ $image.RelPermalink }}" class="img-responsive" alt="{{ $image.Name }}">
|
|
{{ if $moreThanOneImage }}
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ if $moreThanOneImage }}
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
{{ .Content }}
|
|
</div>
|
|
<!-- End post content -->
|
|
{{ partial "comments.html" . }}
|
|
{{ end }}
|
|
|
|
{{ define "customCSS" }}
|
|
{{ partial "css/owlCarousel.html" . }}
|
|
{{ end }}
|
|
|
|
{{ define "customScripts" }}
|
|
{{ partial "js/owlCarousel.html" . }}
|
|
{{ end }}
|