CLEANUP: Unused template + content
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 38/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- css, html
- 领域
- web-dev
调研方向
Start by running hugo --printUnusedTemplates and review the listed files: layouts/_default/translations.html, layouts/partials/publication.html, and the unused shortcodes under layouts/shortcodes/. Trace whether the templates, content, and CSS are referenced elsewhere. Done means each item has a documented reason to remain or is safely removed, with the Hugo build still succeeding.
由索引模型根据 Issue 内容生成。
描述
While looking into #146 , I noticed that there is a lot of content + css that is unused and looks to be left over from a previous version of the site. Running hugo --printUnusedTemplates returns:
$ hugo --printUnusedTemplates
Start building sites …
hugo v0.135.0+extended darwin/arm64 BuildDate=2024-09-27T13:17:08Z VendorInfo=brew
WARN Template _default/translations.html is unused, source file /Users/jerdog/dev/EthicalSource/ethicalsource.dev/layouts/_default/translations.html
WARN Template partials/publication.html is unused, source file /Users/jerdog/dev/EthicalSource/ethicalsource.dev/layouts/partials/publication.html
WARN Template shortcodes/data-list.html is unused, source file /Users/jerdog/dev/EthicalSource/ethicalsource.dev/layouts/shortcodes/data-list.html
WARN Template shortcodes/gallery.html is unused, source file /Users/jerdog/dev/EthicalSource/ethicalsource.dev/layouts/shortcodes/gallery.html
WARN Template shortcodes/publication.html is unused, source file /Users/jerdog/dev/EthicalSource/ethicalsource.dev/layouts/shortcodes/publication.html
WARN Template shortcodes/section.html is unused, source file /Users/jerdog/dev/EthicalSource/ethicalsource.dev/layouts/shortcodes/section.html
| EN
-------------------+------
Pages | 123
Paginator pages | 0
Non-page files | 5
Static files | 118
Processed images | 6
Aliases | 4
Cleaned | 0
Total in 53 ms
Is there a reason to keep this content around? Does it need incorporated into the existing site?
- 主要语言
- HTML
- 星标
- 146
- 派生
- 40
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
EthicalSource/ethicalsource.dev 的其他 Issue
-
FEATURE: Nav isn't responsive on mobile or smaller windows可能已有人在做 @jerdog 于 795 天前认领。 未关闭
EthicalSource/ethicalsource.dev#146 · 已指派 2 人 ·
-
难度 5/5 一周以上 新手友好度 15/100
EthicalSource/ethicalsource.dev#51 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 15/100
EthicalSource/ethicalsource.dev#50 · 10 条评论 ·
-
难度 4/5 3-5 天 新手友好度 20/100
EthicalSource/ethicalsource.dev#44 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 15/100
EthicalSource/ethicalsource.dev#43 · 2 条评论 ·
查看 EthicalSource/ethicalsource.dev 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 67/100
datasektionen/cashflow#468 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
zabuton-app/meguri#875 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
iruzen-dono/workless#117 ·
维护者通常 1 天内回复
-
area:web wave wave:trivial
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复