summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-11-16 00:00:42 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-11-16 00:00:42 +0900
commit07c4cb4eff2261bd9469dbc10778c9c0cfbdd624 (patch)
treef43768a88b2b311ebf5d6f085366d8d3082c8b86
parent195b5193fc91b55a7d41d0deacf657a0ea6c4540 (diff)
modified recordings/single.html
-rw-r--r--layouts/recordings/single.html35
1 files changed, 1 insertions, 34 deletions
diff --git a/layouts/recordings/single.html b/layouts/recordings/single.html
index 1cd0e51..3e9a825 100644
--- a/layouts/recordings/single.html
+++ b/layouts/recordings/single.html
@@ -44,28 +44,8 @@
{{ .Content }}
</main>
- {{ $pages := .CurrentSection.Pages.ByDate.Reverse }}
- {{ $.Scratch.Set "older" nil }}
- {{ $.Scratch.Set "newer" nil }}
- {{ range $i, $p := $pages }}
- {{ if eq $p.File.Path $.File.Path }}
- {{ if lt (add $i 1) (len $pages) }}
- {{ $.Scratch.Set "older" (index $pages (add $i 1)) }}
- {{ end }}
- {{ if gt $i 0 }}
- {{ $.Scratch.Set "newer" (index $pages (sub $i 1)) }}
- {{ end }}
- {{ end }}
- {{ end }}
<footer>
- <div class="nav">
- {{ with $.Scratch.Get "older" }}
- <a class="btn" href="{{ .RelPermalink }}">← Before</a>
- {{ end }}
- {{ with $.Scratch.Get "newer" }}
- <a class="btn" href="{{ .RelPermalink }}">Next →</a>
- {{ end }}
- </div>
+ <div></div>
<div></div>
</footer>
@@ -108,18 +88,5 @@
</script>
{{ end }}
- <script>
- // 선택: 키보드 좌우 화살표로 이전/다음 이동
- document.addEventListener("keydown", e => {
- if (e.target.closest("input,textarea")) return;
- if (e.key === "ArrowLeft") {
- const a=document.querySelector('a.btn:has(+ a.btn), a.btn[href*="Before"]');
- if (a) location.href=a.href;
- } else if (e.key === "ArrowRight") {
- const links=[...document.querySelectorAll('a.btn')].filter(x=>/Next/.test(x.textContent));
- if (links[0]) location.href=links[0].href;
- }
- });
- </script>
</body>
</html>