浏览代码

Added .BaseURL to link in 404 page

digitalcraftsman 10 年前
父节点
当前提交
11adcd3d14
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      layouts/404.html

+ 1
- 1
layouts/404.html 查看文件

5
 
5
 
6
     <div class="content container">
6
     <div class="content container">
7
       <h1>404: Page not found</h1>
7
       <h1>404: Page not found</h1>
8
-        <p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="/">Head back home</a> to try finding it again.</p>
8
+        <p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ .Site.BaseURL }}">Head back home</a> to try finding it again.</p>
9
     </div>
9
     </div>
10
 
10
 
11
   </body>
11
   </body>