1
我試圖列出當前網址部分中的頁面。如何列出當前部分中的頁面
- 獲取所有部分
- 限制範圍內當前部分
- 列表頁,當前第
{{ range $value := .Site.Sections }}
{{ range .Section }}
{{ range $value.Pages }}
<ul>
<li>{{ .Title }}</li>
</ul>
{{ end }}
{{ end }}
{{ end }}
雖然它返回null,原因{{ range .Section }}
無效代碼。
這樣做的正確方法是什麼?
https://gohugo.io/templates/variables/
你認爲你將能夠幫助:https://stackoverflow.com/questions/46848467/hugo-error-calling-where-cant-evaluate-the-array-by-no-match -argument或更多的 – JamesG