aboutsummaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2024-12-28 05:21:24 +0100
committerOscar Najera <hi@oscarnajera.com>2024-12-28 05:21:47 +0100
commit13d8e69b93c51776cd7fe73961f6873d756a995e (patch)
tree25c463bc6b399bd76fc1ab2f20c0c2a1c3a5156f /layouts
parentb51598c54eefb8881c0e1b163ceca915120759d5 (diff)
downloadhugo-minimalist-theme-13d8e69b93c51776cd7fe73961f6873d756a995e.tar.gz
hugo-minimalist-theme-13d8e69b93c51776cd7fe73961f6873d756a995e.tar.bz2
hugo-minimalist-theme-13d8e69b93c51776cd7fe73961f6873d756a995e.zip
search translate
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/search.html13
-rw-r--r--layouts/partials/pagination.html4
2 files changed, 12 insertions, 5 deletions
diff --git a/layouts/_default/search.html b/layouts/_default/search.html
index bcbaad4..1f179bc 100644
--- a/layouts/_default/search.html
+++ b/layouts/_default/search.html
@@ -2,7 +2,7 @@
<div class="mw7 center pa1">
<header>
<h2 class="baskerville f2 lh-title mv3 ph1">
- {{ .Title }}
+ {{ T "search" }}
</h2>
</header>
@@ -10,14 +10,21 @@
<input
id="search-query"
name="q"
- placeholder="search phrase"
+ placeholder="{{ T "search_placeholder" }}"
class="near-black pa2 w-100"
/>
</form>
- <div id="search-results" class="mv2"></div>
+ <div id="search-results" class="mv2">
+ <p class="pa3 f4 fw6 tc">{{ T "search_request" }}</p>
+ </div>
</div>
+ <template id="no-match">
+ <p class="bg-washed-red pa3 dark-red f4 fw6 tc br2 b--light-red ba">
+ {{ T "no_match_found" }}
+ </p>
+ </template>
<template id="search-result-template">
<article class="pv2 bt bb b--black-10 search_summary">
<a class="link dim near-black search_link" href="">
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html
index 52f4213..f8df88e 100644
--- a/layouts/partials/pagination.html
+++ b/layouts/partials/pagination.html
@@ -2,7 +2,7 @@
{{ if gt $pag.TotalPages 1 }}
<nav class="flex items-center justify-center pa4 f5">
{{ if $pag.HasPrev }}
- <a href="{{ $pag.Prev.URL }}" rel="prev" class="near-black link grow hover-bg-light-gray pa2 ba">« {{ T "Prev" }}</a>
+ <a href="{{ $pag.Prev.URL }}" rel="prev" class="near-black link grow hover-bg-light-gray pa2 ba">« {{ T "prev" }}</a>
{{ end }}
{{ range $pag.Pagers }}
{{ if eq . $pag }}
@@ -12,6 +12,6 @@
{{ end }}
{{ end }}
{{ if $pag.HasNext }}
- <a href="{{ $pag.Next.URL }}" rel="next" class="near-black link grow hover-bg-light-gray pa2 ba">{{ T "Next" }} »</a> {{ end }}
+ <a href="{{ $pag.Next.URL }}" rel="next" class="near-black link grow hover-bg-light-gray pa2 ba">{{ T "next" }} »</a> {{ end }}
</nav>
{{ end }}