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

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz-gh <zwbetz@gmail.com>2020-07-10 21:59:32 +0300
committerzwbetz-gh <zwbetz@gmail.com>2020-07-10 21:59:32 +0300
commitb4d6db179a2a959ae1bf8c23b8ed7f624734084a (patch)
tree55b932d625ce89f6a7cf238e9ad7b8f3a5a0efa6
parent67f79b84748d41610856caeb761e119f877d2bc6 (diff)
i18n for search
-rw-r--r--i18n/en.yaml5
-rw-r--r--layouts/_default/list.html4
2 files changed, 6 insertions, 3 deletions
diff --git a/i18n/en.yaml b/i18n/en.yaml
index 65534af..3db3cda 100644
--- a/i18n/en.yaml
+++ b/i18n/en.yaml
@@ -22,4 +22,7 @@
translation: "Tags:"
- id: aria_label_tags
translation: tags
-
+- id: search_placeholder
+ translation: Search by title...
+- id: search_aria_label
+ translation: Search by title
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 98058f4..17d9ed2 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -5,8 +5,8 @@
<input
id="search"
type="text"
- placeholder="Search by title..."
- aria-label="Search by title"
+ placeholder="{{ T "search_placeholder" }}"
+ aria-label="{{ T "search_aria_label" }}"
/>
{{ end }}
<ul class="patterns-list" id="list">