diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-26 21:53:50 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-26 21:53:50 +0900 |
| commit | 8d0b214f158beb944abd515664bc31e138b6bc58 (patch) | |
| tree | d972ff05562037261ca11060369f39f8d07c3d02 | |
| parent | ec1f598bff8a6da8912b095fcf0d561092cd586b (diff) | |
modified recordings/recordings-plain.html
| -rw-r--r-- | layouts/recordings/recordings-plain.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/recordings/recordings-plain.html b/layouts/recordings/recordings-plain.html index 4c746c4..693a285 100644 --- a/layouts/recordings/recordings-plain.html +++ b/layouts/recordings/recordings-plain.html @@ -214,7 +214,7 @@ {{ $ext := path.Ext $f.Name | lower }} <li> <a href="{{ $f.RelPermalink }}" data-name="{{ $f.Name }}" - {{ if in (slice ".mp4" ".mov") $ext }}class="vid"{{ else if in (slice ".jpg" ".jpeg" ".png" ".gif" ".webp" ".svg") $ext }}class="img"{{ else if in (slice ".heic") $ext }}class="heic"{{ end }} + {{ if eq $folderName "hidden" }}class="hidden-file"{{ else }}{{ if in (slice ".mp4" ".mov") $ext }}class="vid"{{ else if in (slice ".jpg" ".jpeg" ".png" ".gif" ".webp" ".svg") $ext }}class="img"{{ else if in (slice ".heic") $ext }}class="heic"{{ end }}{{ end }} >{{ $f.Name }}</a > <span class="badge"> @@ -287,6 +287,8 @@ list.addEventListener("click", (e) => { const vid = e.target.closest("a.vid"); const img = e.target.closest("a.img"); + const hiddenFile = e.target.closest("a.hidden-file"); + if (hiddenFile) return; // hidden 파일은 URL로 이동 if (!vid && !img) return; // note는 링크로 이동 e.preventDefault(); // 미디어는 인라인 표시 wrap.style.display = ""; |
