update relURL to absURL

This commit is contained in:
Dmitry Kolosov 2020-02-15 23:30:39 +03:00
parent 20fc8d4245
commit 47453ee205
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@
<ul class="terms">
{{ range $key, $value := .Data.Terms }}
<li>
<a href="{{ (print "/" $.Data.Plural "/" (lower $key)) | relURL }}">
<a href="{{ (print "/" $.Data.Plural "/" (lower $key)) | absURL }}">
{{ $key }}
</a>
({{ len $value }})

View File

@ -7,12 +7,12 @@
<title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
<meta name="description" content="{{ .Site.Params.Description }}">
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ "/rss/" }}">
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ "/rss/" | absURL }}">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="apple-touch-icon-precomposed" href="/favicon.png">
<link rel="icon" type="image/x-icon" href="{{ "/favicon.ico" | absURL }}">
<link rel="apple-touch-icon-precomposed" href="{{ "/favicon.png" | absURL }}">
<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}?rnd={{ now.Unix }}" />
<link rel="stylesheet" href="{{ "/css/style.css" | absURL }}?rnd={{ now.Unix }}" />
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}