Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/liva-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsomrat <monnaf37@gmail.com>2019-12-03 10:01:30 +0300
committersomrat <monnaf37@gmail.com>2019-12-03 10:01:30 +0300
commit31717ced44e27925a1a305b72c2d88cca670006c (patch)
tree7f44755198dd72711369a438db77d1ddf185617e /layouts
parent275e0c71d838c54857ac98dc8df9a272788fb343 (diff)
modified links for categories and tags
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html6
-rw-r--r--layouts/_default/post.html (renamed from layouts/_default/li.html)2
-rw-r--r--layouts/index.html6
3 files changed, 7 insertions, 7 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 18ec8cf..dd870c0 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -8,7 +8,7 @@
<div class="row">
{{ $paginator := .Paginate .Data.Pages }}
{{ range $paginator.Pages }}
- {{ .Render "li" }}
+ {{ .Render "post" }}
{{ end }}
</div>
</div>
@@ -34,7 +34,7 @@
<ul class="list-unstyled">
{{- range $name, $items := .Site.Taxonomies.categories }}
<li><a
- href="{{ "categories/" | relLangURL }}{{ $name | urlize | lower }}">{{ $name | title | humanize }}</a>
+ href="{{ `categories/` | relLangURL }}{{ $name | urlize | lower }}">{{ $name | title | humanize }}</a>
</li>
{{- end }}
</ul>
@@ -49,7 +49,7 @@
<ul class="list-inline">
{{- range $name, $items := .Site.Taxonomies.tags }}
<li class="list-inline-item"><a class="d-block p-2 bg-primary text-white"
- href="{{ "tags/" | relLangURL }}{{ $name | urlize | lower }}">{{ $name | humanize }}</a></li>
+ href="{{ `tags/` | relLangURL }}{{ $name | urlize | lower }}">{{ $name | humanize }}</a></li>
{{- end }}
</ul>
{{- end }}
diff --git a/layouts/_default/li.html b/layouts/_default/post.html
index 3ff8181..f5a9649 100644
--- a/layouts/_default/li.html
+++ b/layouts/_default/post.html
@@ -5,7 +5,7 @@
{{ end }}
<div class="card-body px-0">
{{ range .Params.Categories }}
- <a href="{{ "categories/" | relLangURL }}{{ . | urlize | lower }}"
+ <a href="{{ `categories/` | relLangURL }}{{ . | urlize | lower }}"
class="text-primary">{{ . | title | humanize }}</a>
{{ end }}
<a href="{{ .Permalink }}" class="h5 d-block my-3">{{ .Title | markdownify }}</a>
diff --git a/layouts/index.html b/layouts/index.html
index b921923..64aae9f 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -81,7 +81,7 @@
{{ end }}
<div class="card-body px-0">
{{ range .Params.Categories }}
- <a href="{{ "categories/" | relLangURL }}{{ . | urlize | lower }}"
+ <a href="{{ `categories/` | relLangURL }}{{ . | urlize | lower }}"
class="text-primary">{{ . | title | humanize }}</a>
{{ end }}
<a href="{{ .Permalink }}" class="h5 d-block my-3">{{ .Title | markdownify }}</a>
@@ -121,7 +121,7 @@
{{- if not (eq (len .Site.Taxonomies.categories) 0) }}
<ul class="list-unstyled">
{{- range $name, $items := .Site.Taxonomies.categories }}
- <li><a href="{{ "categories/" | relLangURL }}{{ $name | urlize | lower }}">{{ $name | humanize }}</a></li>
+ <li><a href="{{ `categories/` | relLangURL }}{{ $name | urlize | lower }}">{{ $name | humanize }}</a></li>
{{- end }}
</ul>
{{- end }}
@@ -135,7 +135,7 @@
<ul class="list-inline">
{{- range $name, $items := .Site.Taxonomies.tags }}
<li class="list-inline-item"><a class="d-block p-2 bg-primary text-white"
- href="{{ "tags/" | relLangURL }}{{ $name | urlize | lower }}">{{ $name | humanize }}</a></li>
+ href="{{ `tags/` | relLangURL }}{{ $name | urlize | lower }}">{{ $name | humanize }}</a></li>
{{- end }}
</ul>
{{- end }}