feat: Prev/Next and PrevInSection/NextInSection
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 58/100
Direzione di ricerca
Start with the Phase 1 cached sorted views and the page-variable implementation; the issue does not name specific source files. Inspect fixture sites in .TestSites/ and the xUnit tests in Fanstatic.Test/, then run ./build.sh test. Done means neighbours are correct across two sections, respect language and output format, return nil at the ends, and are documented on the page-variables docs.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Part of the Phase 2 epic (#23).
Current State
No previous/next navigation exists; themes must sort and search collections themselves (expensive, see Phase 1).
Tasks:
-
page.Prev/page.Nextover the site's regular pages,page.PrevInSection/page.NextInSectionwithin
the section, in the same language and output format - Order: by date descending then title (Hugo default), reusing the cached sorted views from Phase 1
- Nil at the ends
- Document on the page-variables docs
Tests live in Fanstatic.Test/ (xUnit + NSubstitute); fixture sites in .TestSites/. Run ./build.sh test; new/changed methods need CRAP ≤ 15 and ≥ 75 % line coverage.
Acceptance Criteria:
- Correct neighbours on a fixture site with two sections; nil at the ends.
Related:
- #23 (Phase 2 epic, parent)
- Depends on #17
- Lingua principale
- C#
- Stelle
- 1
- Fork
- 0
- Merge medio
- 13h 50m
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MASS4ORG/Fanstatic
-
c:templates p:low size:S t:task
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
-
c:content good first issue p:low size:S t:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
-
c:templates p:medium size:M t:feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
c:content p:medium size:L t:feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
c:templates p:medium size:S t:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 57/100
Tutte le issue di MASS4ORG/Fanstatic
Issue simili
-
python triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
microsoft/semantic-kernel#14590 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
nkdAgility/azure-devops-migration-tools#3226 ·
I maintainer di solito rispondono entro 1 giorno
-
t/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
dotnet/maui#39362 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno