CLEANUP: Unused template + content

未关闭
#147 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

EthicalSource/ethicalsource.dev 的其他 Issue

查看 EthicalSource/ethicalsource.dev 的全部 Issue

相似的 Issue

更多 Web Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。