Change `.Site.BaseURL` to `absURL`
This commit is contained in:
parent
d9093afb2d
commit
67767c62c2
|
@ -14,7 +14,7 @@
|
||||||
{{ if .Params.tags }}
|
{{ if .Params.tags }}
|
||||||
<ul class="post-tags">
|
<ul class="post-tags">
|
||||||
{{ range .Params.tags }}
|
{{ range .Params.tags }}
|
||||||
<li><a href="{{$.Site.BaseURL}}tags/{{ . | urlize }}/">{{ . }}</a></li>
|
<li><a href="{{ "tags/" | absURL }}{{ . | urlize }}/">{{ . }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -22,15 +22,15 @@
|
||||||
<meta name="author" content="{{ .Site.Params.author }}">
|
<meta name="author" content="{{ .Site.Params.author }}">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
<!-- Styles -->
|
<!-- Styles -->
|
||||||
<link href="{{.Site.BaseURL}}css/github-gist.min.css" rel="stylesheet">
|
<link href="{{ "css/github-gist.min.css" | absURL }}" rel="stylesheet">
|
||||||
<link href="{{.Site.BaseURL}}css/style.css" rel="stylesheet">
|
<link href="{{ "css/style.css" | absURL }}" rel="stylesheet">
|
||||||
<!-- Favicons -->
|
<!-- Favicons -->
|
||||||
<link rel="apple-touch-icon" href="{{.Site.BaseURL}}img/apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="{{ "img/apple-touch-icon.png" | absURL }}">
|
||||||
<link rel="icon" href="{{.Site.BaseURL}}img/favicon.ico">
|
<link rel="icon" href="{{ "img/favicon.ico" | absURL }}">
|
||||||
<!-- Generator -->
|
<!-- Generator -->
|
||||||
{{ .Hugo.Generator }}
|
{{ .Hugo.Generator }}
|
||||||
<!-- RSS -->
|
<!-- RSS -->
|
||||||
<link rel="alternate" type="application/atom+xml" href="{{.Site.BaseURL}}index.xml" title="{{ .Site.Title }}">
|
<link rel="alternate" type="application/atom+xml" href="{{ "index.xml" | absURL }}" title="{{ .Site.Title }}">
|
||||||
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||||
{{ template "_internal/google_analytics_async.html" . }}
|
{{ template "_internal/google_analytics_async.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -40,9 +40,9 @@
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
{{ if .IsHome }}
|
{{ if .IsHome }}
|
||||||
<h1 class="logo"><a href="{{.Site.BaseURL}}">{{ .Site.Title }} </a></h1>
|
<h1 class="logo"><a href="{{ "/" | absURL }}">{{ .Site.Title }} </a></h1>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<p class="logo"><a href="{{.Site.BaseURL}}">{{ .Site.Title }} </a></p>
|
<p class="logo"><a href="{{ "/" | absURL }}">{{ .Site.Title }} </a></p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<button class="menu-toggle" type="button"></button>
|
<button class="menu-toggle" type="button"></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue