mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-21 19:42:52 +00:00
Fix issue 302 (#304)
This commit is contained in:
parent
1ed3af80f6
commit
73ba592d6c
1 changed files with 21 additions and 24 deletions
|
@ -66,31 +66,28 @@
|
|||
{{ if .Params.project_timeframe }}
|
||||
<p class="fa-xs">{{ .Params.project_timeframe }}</p>
|
||||
{{ end }}
|
||||
{{ with .Resources.ByType "image" }}
|
||||
{{ $moreThenOneImage := gt (len .) 1 }}
|
||||
{{ if $moreThenOneImage }}
|
||||
<div class="owl-carousel owl-theme">
|
||||
{{ end }}
|
||||
{{ range sort . "Params.weight" }}
|
||||
{{ $image := .Resize "640x" }}
|
||||
{{ if $moreThenOneImage }}
|
||||
<div class="item owl-height">
|
||||
{{ end }}
|
||||
<img src="{{ $image.Permalink }}" class="img-responsive" alt="{{ $image.Name }}">
|
||||
{{ if $moreThenOneImage }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if $moreThenOneImage }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ with .Content }}
|
||||
<section class="modal-card-body markdown">
|
||||
{{ . }}
|
||||
{{ with .Resources.ByType "image" }}
|
||||
{{ $moreThenOneImage := gt (len .) 1 }}
|
||||
{{ if $moreThenOneImage }}
|
||||
<div class="owl-carousel owl-theme">
|
||||
{{ end }}
|
||||
{{ range sort . "Params.weight" }}
|
||||
{{ $image := .Resize "640x" }}
|
||||
{{ if $moreThenOneImage }}
|
||||
<div class="item owl-height">
|
||||
{{ end }}
|
||||
<img src="{{ $image.Permalink }}" class="img-responsive" alt="{{ $image.Name }}">
|
||||
{{ if $moreThenOneImage }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if $moreThenOneImage }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
</section>
|
||||
{{ end }}
|
||||
</div>
|
||||
<button class="modal-close is-large" aria-label="close" data-target="#project-{{ $index }}"></button>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue