summaryrefslogtreecommitdiff
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authornanxiaobei <nanxiaobei@gmail.com>2018-07-06 04:17:31 +0800
committernanxiaobei <nanxiaobei@gmail.com>2018-07-06 04:17:31 +0800
commitd22829882a5158cf51f342350fbf4b3541464621 (patch)
tree8c9c42ea5a0b34b87b1c2caf1163d84f28a65261 /layouts/partials/header.html
parentcb2786f9b2cc660487bd4fc741b5f5706f388067 (diff)
:beers: Add `.Site.BaseURL`
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 7b716a1..72e1e4c 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -25,21 +25,21 @@
<!-- Styles -->
<link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i" rel="stylesheet">
<link href="https://cdn.bootcss.com/highlight.js/9.12.0/styles/default.min.css" rel="stylesheet">
- <link href="/css/style.css" rel="stylesheet">
+ <link href="{{.Site.BaseURL}}css/style.css" rel="stylesheet">
<!-- Favicons -->
- <link rel="apple-touch-icon" href="/img/apple-touch-icon.png">
- <link rel="icon" href="/img/favicon.ico">
+ <link rel="apple-touch-icon" href="{{.Site.BaseURL}}img/apple-touch-icon.png">
+ <link rel="icon" href="{{.Site.BaseURL}}img/favicon.ico">
<!-- Generator -->
<meta name="generator" content="Hugo {{ .Hugo.Version }}">
<!-- RSS -->
- <link rel="alternate" type="application/atom+xml" href="/index.xml" title="{{ .Site.Title }}">
+ <link rel="alternate" type="application/atom+xml" href="{{.Site.BaseURL}}index.xml" title="{{ .Site.Title }}">
</head>
<body class="{{if eq .Kind `page` }}single{{else}}list{{ if .IsHome }} home{{ end }}{{end}}">
<header class="header">
{{ if .IsHome }}
- <h1 class="title"><a href="{{ `/` }}">{{ .Site.Title }}</a></h1>
+ <h1 class="title"><a href="{{.Site.BaseURL}}">{{ .Site.Title }}</a></h1>
{{ else }}
- <p class="title"><a href="{{ `/` }}">{{ .Site.Title }}</a></p>
+ <p class="title"><a href="{{.Site.BaseURL}}">{{ .Site.Title }}</a></p>
{{ end }}
<button class="menu-toggle" type="button"></button>
<nav class="menu">