Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/htdvisser/hugo-base16-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKartik Singhal <kartiksinghal@gmail.com>2016-01-02 06:32:10 +0300
committerKartik Singhal <kartiksinghal@gmail.com>2016-01-02 06:32:10 +0300
commit0e7dcc8d6db2996f54ccdd4f1c306667fbf6f4c4 (patch)
treec7a9a8a83df39a5264dd5dbdae79497863339328
parent694fe64bbb1ff426a4554fc796c044d4727d14db (diff)
Use Go templates for generating correct hrefs
-rw-r--r--layouts/partials/header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 8410583..f1165cc 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -7,9 +7,9 @@
<meta name="author" content="{{ .Site.Params.author }}">
{{ .Hugo.Generator }}
<meta name="viewport" content="width=device-width, initial-scale=1">
-<link rel="stylesheet" href="/css/style.css" type="text/css">
+<link rel="stylesheet" href="{{ "/css/style.css" | absURL }}" type="text/css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" type="text/css">
-<link rel="alternate" href="/index.xml" type="application/rss+xml" title="{{ .Site.Title }}">
+<link rel="alternate" href="{{ "/index.xml" | absURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
<title>{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}</title>
</head>
<body>