feat: Summary, Truncated and ReadingTime
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 68/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- csharp
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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)
- 主要言語
- C#
- スター
- 1
- フォーク
- 0
- 平均マージ
- 13時間 50分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MASS4ORG/Fanstatic のほかの issue
-
c:templates p:low size:S t:task
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
-
c:content good first issue p:low size:S t:feature
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
-
c:templates p:medium size:M t:feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
c:content p:medium size:L t:feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
c:templates p:medium size:S t:feature
難易度 4/5 3〜5日 初心者へのやさしさ 57/100
MASS4ORG/Fanstatic の issue をすべて見る
似ている issue
-
python triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
microsoft/semantic-kernel#14590 ·
メンテナーはふだん 3 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nkdAgility/azure-devops-migration-tools#3226 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Status: New
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
dnnsoftware/Dnn.Platform#7556 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信