我想用Hugo創建一個網站,但我沒有得到如何將一個頁面添加到我的網站(帖子工作正常)。爲什麼我在雨果的單個頁面返回404 HTTP錯誤?
從一個全新的開始安裝(v.0.27 64倍爲窗口),並從我的終端運行以下命令:
> hugo new site soexample
> cd soexample
> git clone https://github.com/parsiya/Hugo-Octopress.git themes\octopress
> hugo new about.md
> echo "Please display me" >> content\about.md
> hugo serve -D -t octopress
我可以看到我的頁的草案是從輸出呈現最後一個命令:
...
Built site for language en:
1 of 1 draft rendered
...
,但是當我試圖訪問要麼http://localhost:1313/about/
或http://localhost:1313/about.html
,服務器(而不是瀏覽器)返回一個白色頁面的Wi th:
404 page not found
我錯過了什麼?
我應該把我的網頁放在一個部分嗎? 也就是說將'soexample \ content \ about.md'移動到'soexample \ content \ about \ _index.md'? –