summaryrefslogtreecommitdiff
path: root/layouts/recordings/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/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>