diff --git a/layouts/portfolio/single.html b/layouts/portfolio/single.html index 919ad59..725e024 100644 --- a/layouts/portfolio/single.html +++ b/layouts/portfolio/single.html @@ -2,27 +2,12 @@ {{ define "main" }} {{ $hasText := ne (.RawContent | strings.TrimSpace) "" }} {{ $images := .Params.images }} +{{ $video := .Params.video }} -{{ with .Params.video }} -
$ ls
- {{ $total := len $images }}{{ if $hasText }}{{ $total = add $total 1 }}{{ end }} + {{ $total := len $images }}{{ if $hasText }}{{ $total = add $total 1 }}{{ end }}{{ if $video }}{{ $total = add $total 1 }}{{ end }}total {{ $total }}