From dd9fb79b5dad1e8990d61afe19bdf4a5a565e2c8 Mon Sep 17 00:00:00 2001 From: karim Date: Mon, 29 Jun 2026 12:02:44 +0200 Subject: [PATCH] video as filebrowser entry --- layouts/portfolio/single.html | 47 +++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 21 deletions(-) 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 }} -
- - -
- -
- 00:00 / 00:00 - - -
-
-{{ end }} - -{{ if or $images $hasText }} +{{ if or $images $hasText $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 }}

{{ end }}