ITADN

[Bug]:Remove empty .post-meta div from search page

#1828ClosedWestonHIT 创建于 2026-01-15
bug
W
WestonHITcommented
### What happened? In layouts/page/search.html, the template includes: ``` {{- if not (.Param "hideMeta") }} <div class="post-meta"> {{- partial "translation_list.html" . -}} </div> {{- end }} ``` However, partials/translation_list.html explicitly excludes the search layout ``` {{- if (ne .Layout "search") }} ``` This means the partial renders nothing on the search page, but still outputs an empty <div class="post-meta"></div>, which is unnecessary and potentially problematic ### Steps to reproduce NA ### Hugo Version Hugo >= 0.146.0 (Recommended - Minimum version required for PaperMod) ### PaperMod Version branch master ### What kind of devices are you seeing the problem on? _No response_ ### What browsers are you seeing the problem on? _No response_ ### Browser Version _No response_ ### Relevant log output ```shell NA ``` ### Repository/Source Code link where this issue can be reproduced _No response_ ### Code of Conduct - [x] I agree to follow this project's Code of Conduct
关闭于 2026-02-10 0 条评论