CLEANUP: Unused template + content

Đang mở
#147 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
css, html
Lĩnh vực
web-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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?

Ngôn ngữ chính
HTML
Star
146
Fork
40
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của EthicalSource/ethicalsource.dev

Tất cả issue của EthicalSource/ethicalsource.dev

Issue tương tự

Thêm issue về Web Dev

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.