Back to Leetcode Go

Content After

website/themes/book/layouts/partials/docs/inject/content-after.html

1.7.97754 B
Original Source

{{ if .Content }} {{/* Hugo 0.74 quirk: within a weight-sorted section, .NextInSection points to the LOWER-weight page (earlier in reading order) and .PrevInSection to the higher-weight one (later). So map them to reading order explicitly. */}} {{ $earlier := .NextInSection }} {{ $later := .PrevInSection }} {{ $isEN := eq .Site.Language.Lang "en" }} {{ $prevLabel := cond $isEN "← Previous" "⬅️ 上一页" }} {{ $nextLabel := cond $isEN "Next →" "下一页 ➡️" }} {{ if or $earlier $later }}


{{ with $earlier }} {{ $prevLabel | safeHTML }} {{ else }} {{ end }} {{ with $later }} {{ $nextLabel | safeHTML }} {{ else }} {{ end }} {{ end }} {{ end }}