🐶 Changed absolute path to relative path

there is no need to be an absolute path becouse there is a canonifyurls option.
This commit is contained in:
koirand 2018-09-24 23:39:32 +09:00
parent f1de1742c5
commit 5e7d82f192
5 changed files with 14 additions and 14 deletions

View file

@ -14,8 +14,8 @@ pygmentsUseClasses = true
Profiles, backgrounds, favorite things etc.
"""
publicationYear = "2018"
# custom_css = ["css/custom.css"]
# custom_js = ["js/custom.js"]
# custom_css = ["/css/custom.css"]
# custom_js = ["/js/custom.js"]
[[params.nav]]
name = "Blog"

View file

@ -5,8 +5,8 @@
<div class="profile">
<div class="profile-body">
<div class="avatar">
<img class="avatar-mask" src="{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}">
<img src="{{ .Site.BaseURL }}img/avatar-border.svg">
<img class="avatar-mask" src="/img/{{ .Site.Params.avatar }}">
<img src="/img/avatar-border.svg">
</div>
<h1 class="author">{{ .Site.Params.Author }}</h1>
<p>

View file

@ -1,11 +1,11 @@
<footer>
<p>
&copy; {{ .Site.Params.publicationYear }} {{ .Site.Params.Author }}.
Powered by <a href="https://gohugo.io/" target="_blank">Hugo</a>
Powered by <a href="https://gohugo.io/">Hugo</a>
using the <a href="https://github.com/koirand/pulp/">pulp</a> theme.
</p>
</footer>
<script src="{{ .Site.BaseURL }}js/main.js"></script>
<script src="/js/main.js"></script>
{{- range .Site.Params.custom_js -}}
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
<script src="{{ . }}"></script>
{{ end }}

View file

@ -3,12 +3,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="{{ .Site.Author }}" />
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}img/favicon.ico">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/markdown.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/syntax-highlight.css">
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/markdown.css">
<link rel="stylesheet" href="/css/syntax-highlight.css">
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}">
<link rel="stylesheet" href="{{ . }}">
{{ end }}
<title>
{{ if eq .Title .Site.Title }}

View file

@ -1,6 +1,6 @@
<header>
<div class="avatar">
<img class="avatar-mask" src="{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}">
<a href="/"><img src="{{ .Site.BaseURL }}img/avatar-border.svg"></a>
<img class="avatar-mask" src="/img/{{ .Site.Params.avatar }}">
<a href="/"><img src="/img/avatar-border.svg"></a>
</div>
</header>