- 拷贝base文件夹,改名hugo-icon-404-robots 1. icon 要放再static 或者theme/static目录下,以hyde主题来说 ``` <head> <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png"> </head> ``` 2. 404页面生成需要模板, 在theme/layouts/404.html,以hyde主题来说 ```       {{ define "main" -}}       404: Page not found    Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. Head back home to try finding it again.       {{- end }} ``` 3. robot.txt生成也需要模板layouts/robot.txt,同时config.toml:enableRobotsTXT = true,layout/robot.txt 站长站有robots文件生成器http://tool.chinaz.com/robots/ ``` User-agent: Baiduspider Disallow: ``` 4. 在e:\\yunduan\\hugo-icon-404-robots\\ 目录下面执行..\\bin\\hugo -D ,查看public 目录robots.txt 和 404.html都有了