diff options
author | MyGiHu <74786828+MyGiHu@users.noreply.github.com> | 2021-07-24 16:49:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-24 16:49:01 +0300 |
commit | 73ba592d6ca28567a0adce1790a81576a6bab107 (patch) | |
tree | cf5b1b1c7b8c2961e1a3fed9cd8bd116d330c8a8 /layouts | |
parent | 1ed3af80f69af3e1b74e6ac98e4d2ae7d8693e51 (diff) |
Fix issue 302 (#304)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/home/projects.html | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html index ffcebc7..45a3a88 100644 --- a/layouts/partials/home/projects.html +++ b/layouts/partials/home/projects.html @@ -65,32 +65,29 @@ {{ end }} {{ 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 }} + <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 }} - {{ if $moreThenOneImage }} - </div> - {{ end }} - {{ end }} - - {{ with .Content }} - <section class="modal-card-body markdown"> - {{ . }} + {{ end }} + {{ .Content }} </section> - {{ end }} </div> <button class="modal-close is-large" aria-label="close" data-target="#project-{{ $index }}"></button> </div> |