Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问如何让related.html 的相关文章能显示出来 #30

Open
xiyuvi opened this issue Sep 6, 2020 · 2 comments
Open

请问如何让related.html 的相关文章能显示出来 #30

xiyuvi opened this issue Sep 6, 2020 · 2 comments

Comments

@xiyuvi
Copy link

xiyuvi commented Sep 6, 2020

今天不知道设置了什么,把每一篇文章页面底部的相关文章显示出来了。然后不知道设置了什么又不见了。
我在hugo语法搜了一下related.html 里{{ $related := (where site.RegularPages "Type" "in" site.Params.mainSections).Related . | first 3 }}的意思,没有找到合适的方法,所以请教一下正常情况应该怎么设置才能让相关文章推荐显示出来。

@hiensarahly
Copy link

Having the same question (on displaying Related Content), hope someone can shed some light on it.

@dlzmoe
Copy link

dlzmoe commented Sep 24, 2021

related 显示的是当前文章同标签的文章

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants