feat: Summary, Truncated and ReadingTime
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 68/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- csharp
- Ambito
- backend, documentation, testing-qa
Direzione di ricerca
Start in the page model and related tests under Fanstatic.Test/, then inspect the .TestSites/ fixtures for existing content parsing. Cover front-matter, <!--more-->, and word-limit summaries, caching, truncation, and reading time at 213 words per minute; run ./build.sh test and update the page-variables documentation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Part of the Phase 2 epic (#23).
Current State
Themes print full Content in lists because there is no summary. Hugo offers .Summary, .Truncated and
.ReadingTime.
Tasks:
-
page.Summary: front matterSummaryif set; else the content before<!--more-->; else the first
N words of the plain text (N configurable asSummaryLength, default 70) -
page.Truncated: true when the summary is shorter than the content -
page.ReadingTime: minutes, from the cachedWordCountat 213 words per minute (Hugo default), rounded up - Cache each value per page
- 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:
- All three summary sources covered by tests;
<!--more-->does not appear inContent.
Related:
- #23 (Phase 2 epic, parent)
- 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
-
affected/v17 affected/v18 area/frontend type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
umbraco/Umbraco-CMS#24186 ·
I maintainer di solito rispondono entro 2 giorni
-
.NET Azure Functions Docs OpenTelemetry
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
getsentry/sentry-dotnet#5715 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
AssignTargetPath does not recognize forward slashes in relative path specifiersForse già presa @AustinAviv l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 2 giorni
-
needs-area-label
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Fallout-build/Fallout#708 ·
I maintainer di solito rispondono entro 5 giorni