fix: fix links

master
nodejh 4 years ago
parent ad3d821844
commit 3c0b005454

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

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

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

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

Loading…
Cancel
Save