remove forward slashes from urls

This commit is contained in:
Dmitry Kolosov 2020-02-15 23:34:25 +03:00
parent 47453ee205
commit 6423a3b90c
6 changed files with 12 additions and 12 deletions

View File

@ -18,14 +18,14 @@
{{ if .Params.categories }} {{ if .Params.categories }}
<ul class="article-categories"> <ul class="article-categories">
{{ range .Params.categories }} {{ range .Params.categories }}
<li><a href="/categories/{{ . }}">{{ . }}</a></li> <li><a href="categories/{{ . }}">{{ . }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}
{{ if .Params.tags }} {{ if .Params.tags }}
<ul class="article-tags"> <ul class="article-tags">
{{ range .Params.tags }} {{ range .Params.tags }}
<li><a href="/tags/{{ . }}">#{{ . }}</a></li> <li><a href="tags/{{ . }}">#{{ . }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}

View File

@ -15,14 +15,14 @@
{{ if .Params.categories }} {{ if .Params.categories }}
<ul class="article-categories"> <ul class="article-categories">
{{ range .Params.categories }} {{ range .Params.categories }}
<li><a href="/categories/{{ . }}">{{ . }}</a></li> <li><a href="categories/{{ . }}">{{ . }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}
{{ if .Params.tags }} {{ if .Params.tags }}
<ul class="article-tags"> <ul class="article-tags">
{{ range .Params.tags }} {{ range .Params.tags }}
<li><a href="/tags/{{ . }}">#{{ . }}</a></li> <li><a href="tags/{{ . }}">#{{ . }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}

View File

@ -24,14 +24,14 @@
{{ if .Params.categories }} {{ if .Params.categories }}
<ul class="article-categories"> <ul class="article-categories">
{{ range .Params.categories }} {{ range .Params.categories }}
<li><a href="/categories/{{ . }}">{{ . }}</a></li> <li><a href="categories/{{ . }}">{{ . }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}
{{ if .Params.tags }} {{ if .Params.tags }}
<ul class="article-tags"> <ul class="article-tags">
{{ range .Params.tags }} {{ range .Params.tags }}
<li><a href="/tags/{{ . }}">#{{ . }}</a></li> <li><a href="tags/{{ . }}">#{{ . }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}

View File

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

View File

@ -2,7 +2,7 @@
<h1>{{ i18n "category" | humanize }}: {{ .Title }}</h1> <h1>{{ i18n "category" | humanize }}: {{ .Title }}</h1>
<div class="article-info"> <div class="article-info">
<a href="/categories/">{{ i18n "toAllCategories" | humanize }}</a> <a href="categories/">{{ i18n "toAllCategories" | humanize }}</a>
</div> </div>
{{ range .Data.Pages }} {{ range .Data.Pages }}
<article class="post-list"> <article class="post-list">

View File

@ -2,7 +2,7 @@
<h1>{{ i18n "tag" | humanize }}: {{ .Title }}</h1> <h1>{{ i18n "tag" | humanize }}: {{ .Title }}</h1>
<div class="article-info"> <div class="article-info">
<a href="/tags/">{{ i18n "toAllTags" | humanize}}</a> <a href="tags/">{{ i18n "toAllTags" | humanize}}</a>
</div> </div>
{{ range .Data.Pages }} {{ range .Data.Pages }}
<article class="post-list"> <article class="post-list">