Using the .Site.BaseURL
to replace "/" | absURL
.
This commit is contained in:
parent
e8ae475591
commit
778ae79ac4
@ -191,11 +191,13 @@
|
||||
|
||||
.post-tags {
|
||||
padding: 1rem 0 1rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.post-nav {
|
||||
margin: 2rem 0;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="notfound">
|
||||
<h1 class="error-emoji"></h1>
|
||||
<p class="error-text">/* 404 page not found. */</p>
|
||||
<p class="error-link"><a href="{{ "/" | relLangURL }}">↑ Back Home ↑</a></p>
|
||||
<p class="error-link"><a href="{{ .Site.BaseURL }}">↑ Back Home ↑</a></p>
|
||||
</div>
|
||||
<script>
|
||||
var errorEmojiContainer = document.getElementsByClassName('error-emoji')[0];
|
||||
|
@ -68,34 +68,23 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ with .Params.tags }}
|
||||
|
||||
<div class="post-tags">
|
||||
<section style="float:left;">
|
||||
<i class="iconfont icon-tag"></i>Tag(s):
|
||||
{{ range . }}
|
||||
<span class="tag"><a href="{{ "tags/" | absURL }}{{ . | urlize }}/">
|
||||
#{{.}}</a></span>
|
||||
{{ end }}
|
||||
</section>
|
||||
<section style="float:right;">
|
||||
<a href="javascript:window.history.back();">back</a></span> ·
|
||||
<span><a href="{{ "/" | absURL}}">home</a></span>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
<div class="post-comment">
|
||||
{{ if ne .Site.DisqusShortname "" }}
|
||||
{{ if ( .Params.showComments | default true ) }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{ with .Params.tags }}
|
||||
<section>
|
||||
<i class="iconfont icon-tag"></i>Tag(s):
|
||||
{{ range . }}
|
||||
<span class="tag"><a href="{{ "tags/" | absURL }}{{ . | urlize }}/">
|
||||
#{{.}}</a></span>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
|
||||
</section>
|
||||
{{ end }}
|
||||
<section>
|
||||
<a href="javascript:window.history.back();">back</a></span> ·
|
||||
<span><a href="{{ .Site.BaseURL }}">home</a></span>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="post-nav">
|
||||
{{ if .PrevInSection }}
|
||||
<a href="{{.PrevInSection.Permalink}}" class="prev" rel="prev" title="{{ .PrevInSection.Title}}"><i class="iconfont icon-left"></i> {{ .PrevInSection.Title}}</a>
|
||||
@ -104,5 +93,15 @@
|
||||
<a href="{{.NextInSection.Permalink}}" class="next" rel="next" title="{{.NextInSection.Title}}">{{.NextInSection.Title}} <i class="iconfont icon-right"></i></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="post-comment">
|
||||
{{ if ( .Params.showComments | default true ) }}
|
||||
{{ if ne .Site.DisqusShortname "" }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{ else }}
|
||||
{{ partial "gitalk.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
{{- end }}
|
||||
|
@ -14,7 +14,6 @@
|
||||
{{ with .Site.Params.beian }}
|
||||
<a href="http://www.miibeian.gov.cn/" target="_blank" rel="external nofollow">{{ . }} </a> |
|
||||
{{ end }}
|
||||
<a href="/privacy/"> Privacy </a> |
|
||||
<span>Powered by <a href="https://gohugo.io/" target="_blank" rel="external nofollow">Hugo</a> & <a href="https://github.com/liuzc/leaveit" target="_blank" rel="external nofollow">LeaveIt</a></span>
|
||||
</div>
|
||||
</footer>
|
||||
|
Loading…
Reference in New Issue
Block a user