reuixiy / hugo-theme-meme

😝 You can’t spell awesome without MemE!
https://io-oi.me/hugo-theme-meme
MIT License
1.01k stars 279 forks source link

Page Not Found #435

Closed Dawson-Jones closed 1 year ago

Dawson-Jones commented 1 year ago

抱歉打扰, 我按照 README 中的方式操作的, 一直到定制 MemE前, 即hugo server -D, 但是我这里显示 page not found

ubuntu@ubuntu:~/my_project/blog$ hugo server -D
Start building sites …
hugo v0.114.1-e9b716ad9869b79e7c374bbdae4daf5ee6406bd4+extended linux/amd64 BuildDate=2023-06-23T11:02:58Z VendorInfo=snap:0.114.1

WARN  found no layout file for "html" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN  found no layout file for "html" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN  found no layout file for "html" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN  found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

                   | EN
-------------------+-----
  Pages            |  5
  Paginator pages  |  0
  Non-page files   |  0
  Static files     |  0
  Processed images |  0
  Aliases          |  0
  Sitemaps         |  1
  Cleaned          |  0

Built in 64 ms
Watching for changes in /home/ubuntu/my_project/blog/{archetypes,assets,content,data,layouts,static}
Watching for config changes in /home/ubuntu/my_project/blog/hugo.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
^Z
[1]+  Stopped                 hugo server -D
ubuntu@ubuntu:~/my_project/blog$ bg
[1]+ hugo server -D &
ubuntu@ubuntu:~/my_project/blog$ curl http://localhost:1313/
<h1>Page Not Found</h1>

此外我还 clone 了您的 blog: https://github.com/reuixiy/io-oi.me
运行hugo server -D, 依然是 Page NOT Found

hugo 版本信息

ubuntu@ubuntu:~/my_project/blog$ hugo version
hugo v0.114.1-e9b716ad9869b79e7c374bbdae4daf5ee6406bd4+extended linux/amd64 BuildDate=2023-06-23T11:02:58Z VendorInfo=snap:0.114.1
ubuntu@ubuntu:~/my_project/blog$ exit
logout
[~/project/my_blog]$ hugo version                                                                                                                   *[master]
hugo v0.114.1+extended darwin/amd64 BuildDate=unknown
Dawson-Jones commented 1 year ago

找到问题了, 现在 hugo 会默认生成一个叫 hugo.toml 的文件, 要删除这个文件 config.toml 才会生效