From ca84da5b31fa00ca6c729a9b500efeb28f90b41b Mon Sep 17 00:00:00 2001
From: Nikola Georgiev <42315052+nikolageorgiev2000@users.noreply.github.com>
Date: Mon, 12 Sep 2022 00:05:14 +0000
Subject: [PATCH] feat: Hide full path to file in Wikilinks by default (#195)
---
layouts/_default/taxonomy.html | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index 4f0b117..01ec325 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="en">
+<html lang="{{ .Lang }}">
{{ partial "head.html" . }}
<body>
@@ -8,12 +8,15 @@
<!-- Begin actual content -->
{{partial "header.html" .}}
<article>
- <h1>All {{.Title}}</h1>
+ <h1>{{ i18n "all_posts" . }}</h1>
+ {{with .Params.description}}
+ <p>{{.}}</p>
+ {{end}}
<div class="tags">
{{ range .Site.Taxonomies.tags.ByCount }}
<div class="meta">
<h1><a href="{{ .Page.Permalink }}">{{ .Page.Title | humanize }}</a></h1>
- <p><b>{{ .Count }}</b> notes with this tag {{if gt .Count 10}}(showing first 10 results){{end}}</p>
+ <p><b>{{ .Count }}</b> {{ i18n "notes_count" }} {{if gt .Count 10}}({{ i18n "first_10"}}){{end}}</p>
</div>
{{ with ($.Site.GetPage (printf "/tags/%s" .Page.Title)) }}
{{partial "page-list.html" (first 10 .Pages.ByLastmod.Reverse)}}
@@ -24,5 +27,4 @@
{{partial "contact.html" .}}
</div>
</body>
-
</html>
--
Gitblit v1.10.0