summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/all-posts.html4
-rw-r--r--layouts/_default/home.html2
-rw-r--r--layouts/_default/list.html6
-rw-r--r--layouts/_default/search.html12
4 files changed, 12 insertions, 12 deletions
diff --git a/layouts/_default/all-posts.html b/layouts/_default/all-posts.html
index 319a8d5..d2ce8ee 100644
--- a/layouts/_default/all-posts.html
+++ b/layouts/_default/all-posts.html
@@ -9,7 +9,7 @@
{{ . }}
</div>
{{- else }}
- {{- $description := or .Description (lang.Translate "posts.all_description" | default "All posts on this website, from newest to oldest.") }}
+ {{- $description := or .Description (lang.Translate "posts_all_description" | default "All posts on this website, from newest to oldest.") }}
<p class="all-posts__description">
{{ $description }}
</p>
@@ -29,7 +29,7 @@
</div>
{{ else }}
<p class="all-posts__empty-message">
- {{ lang.Translate "posts.empty" | default "This site does not have any posts yet." }}
+ {{ lang.Translate "posts_empty" | default "This site does not have any posts yet." }}
</p>
{{- end }}
</section>
diff --git a/layouts/_default/home.html b/layouts/_default/home.html
index 031e3b5..880f124 100644
--- a/layouts/_default/home.html
+++ b/layouts/_default/home.html
@@ -16,7 +16,7 @@
{{- partial "list/recent-posts.html" (dict
"count" 5
- "title" (lang.Translate "posts.recent" | default "Recent Articles")
+ "title" (lang.Translate "posts_recent" | default "Recent Articles")
"show_view_all" true
)
-}}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index a8cb92a..fb53b40 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -9,14 +9,14 @@
{{ . }}
</div>
{{- else }}
- {{- $description := or .Description .Summary (lang.Translate "list.default_description" .Title | default (printf "All posts in %s" .Title)) }}
+ {{- $description := or .Description .Summary (lang.Translate "list_description" .Title | default (printf "All posts in %s" .Title)) }}
<p class="list-page__description">
{{ $description }}
</p>
{{- end }}
</header>
- <section class="list-page__content" aria-label="{{ lang.Translate "posts.name" | default "Posts" }}">
+ <section class="list-page__content" aria-label="{{ lang.Translate "posts" | default "Posts" }}">
{{- /* 15 posts per site */ -}}
{{- $paginator := .Paginate .Pages 15 }}
{{- with $paginator.Pages }}
@@ -29,7 +29,7 @@
</ul>
{{ else }}
<p class="list-page__empty-message">
- {{ lang.Translate "list.empty" | default "No posts found in this section." }}
+ {{ lang.Translate "list_empty" | default "No posts found in this section." }}
</p>
{{- end }}
</section>
diff --git a/layouts/_default/search.html b/layouts/_default/search.html
index 7ddaba2..90a6357 100644
--- a/layouts/_default/search.html
+++ b/layouts/_default/search.html
@@ -9,17 +9,17 @@
{{ . }}
</div>
{{- else }}
- {{- $description := or .Description (lang.Translate "search.description" | default "Find posts by search term.") }}
+ {{- $description := or .Description (lang.Translate "search_description" | default "Find posts by search term.") }}
<p class="search-page__description">
{{ $description }}
</p>
{{- end }}
</header>
- <section class="search-page__container" aria-label="{{ lang.Translate "search.label" | default "Search all posts" }}">
+ <section class="search-page__container" aria-label="{{ lang.Translate "search_label" | default "Search all posts" }}">
<form id="search-form" class="search-form" role="search" autocomplete="off">
<label for="search-input" class="search-form__label" hidden>
- {{ lang.Translate "search.label" | default "Search all posts" }}
+ {{ lang.Translate "search_label" | default "Search all posts" }}
</label>
<div class="search-form__input-wrapper">
<input
@@ -27,13 +27,13 @@
class="search-form__input"
type="search"
data-index-url="{{ site.Home.RelPermalink }}index.json"
- placeholder="{{ lang.Translate "search.placeholder" | default "Type to search..." }}"
+ placeholder="{{ lang.Translate "search_placeholder" | default "Type to search..." }}"
/>
<button
id="search-reset"
type="button"
class="search-form__reset"
- aria-label="{{ lang.Translate "search.reset" | default "Clear search" }}"
+ aria-label="{{ lang.Translate "search_reset" | default "Clear search" }}"
>
<span class="search-clear__icon" aria-hidden="true">&times;</span>
</button>
@@ -45,7 +45,7 @@
<div id="search-results" class="search-page__results" aria-live="polite">
<p class="search-results__count" hidden>
<span id="search-results-number">0</span>
- {{ lang.Translate "search.matches" | default "matches" }}
+ {{ lang.Translate "search_matches" | default "matches" }}
</p>
<ul class="search-results__list" hidden></ul>