fix: fix links

master
nodejh 4 years ago
parent ad3d821844
commit 3c0b005454

@ -5,9 +5,9 @@
{{ range $key, $value := .Data.Terms.ByCount }}
{{ if ($value.Name) }}
<span class="tag">
<a href="{{ $.Site.BaseURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}">
{{ $value.Name | upper }} <span>({{ $value.Count }})</span>
</a>
<a href="{{ "tags/" | relURL }}{{ $value.Name | urlize }}">
{{ $value.Name | upper }} <span>({{ $value.Count }})</span>
</a>
</span>
{{ end }}
{{ end }}

@ -10,8 +10,8 @@
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
{{ end }}
<link rel="stylesheet" href={{ "/css/style.css" | relURL }}>
<link rel="shortcut icon" href={{ "/images/favicon.ico" | relURL }} type="image/x-icon" />
<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}">
<link rel="shortcut icon" href="{{ "/images/favicon.ico" | relURL }}" type="image/x-icon" />
{{ if .OutputFormats.Get "RSS" }}

@ -1,10 +1,10 @@
<nav class="navigation">
{{ if not .IsHome }}
<a href='/'> <span class="arrow"></span>{{ with .Site.Params.home }}{{ . }}{{ else }}Home{{ end }}</a>
<a href="{{ "/" | relURL }}"> <span class="arrow"></span>{{ with .Site.Params.home }}{{ . }}{{ else }}Home{{ end }}</a>
{{ end }}
<a href='/posts'>{{ with .Site.Params.archive }}{{ . }}{{ else }}Archive{{ end }}</a>
<a href='/tags'>{{ with .Site.Params.tags }}{{ . }}{{ else }}Tags{{ end }}</a>
<a href='/about'>{{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }}</a>
<a href="{{ "/posts" | relURL }}">{{ with .Site.Params.archive }}{{ . }}{{ else }}Archive{{ end }}</a>
<a href="{{ "/tags" | relURL }}">{{ with .Site.Params.tags }}{{ . }}{{ else }}Tags{{ end }}</a>
<a href="{{ "/about" | relURL }}">{{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }}</a>
{{ range $element := .Site.Params.Links }}
<a href="{{ $element.path }}">{{ $element.name }}</a>

@ -1,10 +1,10 @@
<header class="profile">
{{ if .Site.Params.avatarLink }}
<a href="{{ .Site.Params.avatarLink }}">
<img class="avatar" alt="avatar" src="/images/avatar.png" />
<img class="avatar" alt="avatar" src="{{ "/images/avatar.png" | relURL }}" />
</a>
{{ else }}
<img class="avatar" alt="avatar" src="/images/avatar.png" />
<img class="avatar" alt="avatar" src="{{ "/images/avatar.png" | relURL }}" />
{{ end }}
<h1>{{ .Site.Title }}</h1>

Loading…
Cancel
Save