fivestone on Nostr: #求教 hugo 里,有什么方法,让首页就显示某篇 md 的内容? ...
#求教 hugo 里,有什么方法,让首页就显示某篇 md 的内容?
好像不能随便加 content/index.md,否则 hugo list all 就只能看到这个 md,其它 md 文件就都不处理了……
最简便的方法,是改 theme 里的 layouts/index.json?怎么改啊?
Published at
2024-07-04 09:58:50Event JSON
{
"id": "ff0ca8f2e11c9f94847f9c573780b21adcbd2980ae1a8f68c45ffef2a53da9a3",
"pubkey": "eed60c165f5aa9124bb61dc38e2b576ef11e340105d5396cf42156123178eadf",
"created_at": 1720087130,
"kind": 1,
"tags": [
[
"t",
"求教"
],
[
"proxy",
"https://mastodon.fivest.one/users/fivestone/statuses/112727630215999626",
"activitypub"
]
],
"content": "#求教 hugo 里,有什么方法,让首页就显示某篇 md 的内容?\n\n好像不能随便加 content/index.md,否则 hugo list all 就只能看到这个 md,其它 md 文件就都不处理了……\n\n最简便的方法,是改 theme 里的 layouts/index.json?怎么改啊?",
"sig": "3ffe9a22a30852a30fc9d5db0ac9187a068675c824129ef80525c65c28c1ade9a8218c1212f64683abe892f8d0f8a4bb6ab5cbe7155739fafc8ef9574117324f"
}