Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat: permalink patterns per section and taxonomy

Aperta
#32 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
backend

Direzione di ricerca

Start with Site.CreatePermalink in Fanstatic/Models/Site.cs and read the URL documentation at Fanstatic-site/content/docs/about/features/urls.md; inspect existing tests and fixture sites in Fanstatic.Test/ and .TestSites/. Run ./build.sh test to establish the baseline. Done means a fixture verifies section and taxonomy patterns, precedence, multilingual prefixes, and paginated paths, with the URL documentation updated.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

c:content p:medium size:M t:feature

Part of the Phase 2 epic (#23).

Current State

URLs can only be changed per page through the front matter URL template (Site.CreatePermalink,
Fanstatic/Models/Site.cs:453). There is no site-wide pattern per section like Hugo's permalinks:.

Tasks:
  • Config Permalinks: { blog: "/:year/:month/:slug/", tags: "/topics/:slug/" }
  • Tokens: :year, :month, :day, :section, :slug, :title, :filename, :contentbasename
  • Precedence: front matter URL > section pattern > default
  • Works with multilingual prefixes and pagination paths
  • Document on ../Fanstatic-site/content/docs/about/features/urls.md

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:
  • Fixture site with patterns for a section and a taxonomy produces the expected paths, including page 2 of lists.
Related:
  • #23 (Phase 2 epic, parent)
Lingua principale
C#
Stelle
1
Fork
0
Merge medio
13h 50m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MASS4ORG/Fanstatic

Tutte le issue di MASS4ORG/Fanstatic

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.