diff options
author | kimcc <15278020+kimcc@users.noreply.github.com> | 2021-06-18 06:55:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 06:55:46 +0300 |
commit | 3852731b02c3e3bbc19e7cf90705ac3c5f0fdc9b (patch) | |
tree | 698e3c219920f5dc44862ab2e226b54fb85e22fc | |
parent | b2aa36921093ce52dfc3499baa68c4d196877809 (diff) | |
parent | 7edd32bb77b5eb17191e943be2d8735b48e44e4f (diff) |
Merge pull request #23 from kamijin-fanta/fix-path
fix path on relative base-url
-rw-r--r-- | layouts/index.html | 6 | ||||
-rw-r--r-- | layouts/partials/nav.html | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/index.html b/layouts/index.html index aa3292a..9281b81 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -26,7 +26,7 @@ <!-- Display tags --> {{if .Params.tags}} {{ range .Params.tags }} - <a class="tag" href="/tags/{{ . | urlize }}">#{{.}}</a> + <a class="tag" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">#{{.}}</a> {{ end }} {{ end }} </div> @@ -41,7 +41,7 @@ <p>{{ i18n "page" }} {{ $paginator.PageNumber}} {{ i18n "of" }} {{ $paginator.TotalPages }}</p> <div class="paginator-group"> {{ if $paginator.HasPrev }} - <a class="color-link" href="{{ $paginator.Prev.URL | relLangURL }}"> + <a class="color-link" href="{{ $paginator.Prev.URL }}"> <svg width="13px" height="9px" viewBox="0 0 13 9" version="1.1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink"> <g class="color-arrow" fill="#63BDA2" fill-rule="nonzero"> <polygon id="Path" points="1.75929935 4.50000282 5.3292523 7.62371165 4.6707477 8.37628835 0.240700645 4.49999718 4.67081049 0.623709205 5.32930951 1.37629079"></polygon> @@ -52,7 +52,7 @@ </a> {{ end }} {{ if $paginator.HasNext }} - <a class="color-link older" href="{{ $paginator.Next.URL | relLangURL }}"> + <a class="color-link older" href="{{ $paginator.Next.URL }}"> {{ i18n "older" }} <svg width="13px" height="9px" viewBox="0 0 13 9" version="1.1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink"> <g class="color-arrow" fill="#63BDA2" fill-rule="nonzero"> diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 3e5a2fd..78d725e 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -3,7 +3,7 @@ {{ partial "header.html" . }} <div class="nav-menu"> {{ range .Site.Menus.main }} - <a class="color-link nav-link" href="{{ .URL | relLangURL }}">{{ .Name }}</a> + <a class="color-link nav-link" href="{{ .URL }}">{{ .Name }}</a> {{ end }} <a class="color-link nav-link" href="{{ .Site.RSSLink }}" target="_blank" rel="noopener" type="application/rss+xml">RSS</a> </div> |