CLEANUP: Unused template + content

オープン
#147 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EthicalSource/ethicalsource.dev のほかの issue

EthicalSource/ethicalsource.dev の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。