Compare commits

..

13 Commits

Author SHA1 Message Date
Mark Dumay
a0fb57d7d3 Merge pull request #92 from markdumay/develop
Fix spacing of blog captions #87
2022-12-12 07:04:03 +01:00
mark
c6c686ec65 Fix spacing of blog captions #87 2022-12-12 07:01:13 +01:00
Mark Dumay
48f967ad92 Merge pull request #91 from markdumay/develop
Bump package version
2022-12-12 06:54:53 +01:00
mark
ba3af4f031 Bump package version 2022-12-12 06:52:14 +01:00
Mark Dumay
70a175bdaa Merge pull request #89 from dgrammlich/enhance-i18n-labels
Translate pagination buttons
2022-12-12 06:47:03 +01:00
Daniela Grammlich
fdc0750f13 Translate first and last button of pagination 2022-12-12 00:20:21 +01:00
Daniela Grammlich
43db7912d0 Provide translations for aria-label 2022-12-12 00:19:35 +01:00
Daniela Grammlich
5a4f0dc14d Merge branch 'markdumay:main' into enhance-i18n-labels 2022-12-12 00:07:19 +01:00
Daniela Grammlich
c93b62817e Use proper Dutch translation for pagination 2022-12-11 19:32:39 +01:00
Mark Dumay
3a6ab9df76 Merge pull request #88 from dgrammlich/german-language-support
Add German translation
2022-12-11 19:07:32 +01:00
Daniela Grammlich
ad5989d80f Provide labels for pagination 2022-12-11 19:02:38 +01:00
Daniela Grammlich
0b9eadffb6 Translate pagination buttons 2022-12-11 18:56:55 +01:00
Daniela Grammlich
9963b746b1 Add German translation 2022-12-11 18:22:39 +01:00
7 changed files with 141 additions and 19 deletions

108
i18n/de.yaml Normal file
View File

@@ -0,0 +1,108 @@
# Content
- id: postedOnDate
translation: "Veröffentlicht am {{ . }}"
- id: lastModified
translation: "(Zuletzt verändert am {{ . }})"
- id: translationsLabel
translation: "Andere Sprachen: "
- id: translationsSeparator
translation: ", "
- id: readMore
translation: "Weiterlesen"
- id: morePosts
translation: "Weitere Beiträge"
- id: olderPosts
translation: "Ältere Beiträge"
- id: recentPosts
translation: "Aktuelle Beiträge"
- id: newerPosts
translation: "Neuere Beiträge"
- id: previousPost
translation: "Vorheriger Beitrag"
- id: nextPost
translation: "Nächster Beitrag"
- id: read
translation: "Lesezeit"
- id: minutesShort
translation: "Min."
- id: words
translation: "Wörter"
- id: copyright
translation: "Copyright"
- id: photoBy
translation: "Foto von"
- id: photoOn
translation: "auf"
- id: article
translation: "Artikel"
- id: articles
translation: "Artikel"
- id: paginationPrevious
translation: "Vorherige"
- id: paginationNext
translation: "Nächste"
- id: paginationFirst
translation: "Erste"
- id: paginationLast
translation: "Letzte"
# 404 page
- id: pageNotFound
translation: "Ups! Diese Seite existiert nicht. Versuche es über die"
- id: pageNotFoundTitle
translation: "Nicht gefunden"
- id: pageNotFoundHome
translation: "Startseite"
# Navigation
- id: toggleNavigation
translation: "Navigation umschalten"
- id: languageSwitcherLabel
translation: "Sprache"
- id: gcseLabelShort
translation: "Suche"
- id: gcseLabelLong
translation: "Suche {{ .Site.Title }}"
- id: gcseClose
translation: "Schließen"
# Staticman
- id: noComment
translation: "Kein Kommentar"
- id: oneComment
translation: "Kommentar"
- id: moreComment
translation: "Kommentare"
- id: useMarkdown
translation: "Du kannst Markdown-Syntax benutzen"
- id: yourName
translation: "Dein Name"
- id: yourEmail
translation: "Deine E-Mail-Adresse"
- id: yourWebsite
translation: "Deine Webseite"
# Delayed Disqus
- id: show
translation: "Zeige"
- id: comments
translation: "Kommentare"
# Related posts
- id: seeAlso
translation: "Siehe auch"
# Table of contents
- id: toc
translation: "Auf dieser Seite"
# Search
- id: ui_search
translation: "Durchsuche diese Seite..."
- id: ui_no_results
translation: "Keine Ergebnisse für"
# Draft
- id: draft
translation: "Entwurf"

View File

@@ -37,7 +37,14 @@
translation: "Article"
- id: articles
translation: "Articles"
- id: paginationPrevious
translation: "Previous"
- id: paginationNext
translation: "Next"
- id: paginationFirst
translation: "First"
- id: paginationLast
translation: "Last"
# 404 page
- id: pageNotFound

View File

@@ -37,7 +37,14 @@
translation: "Artikel"
- id: articles
translation: "Artikelen"
- id: paginationPrevious
translation: "Vorige"
- id: paginationNext
translation: "Volgende"
- id: paginationFirst
translation: "Eerste"
- id: paginationLast
translation: "Laatste"
# 404 page
- id: pageNotFound

View File

@@ -8,7 +8,7 @@
<p class="card-text">
<small class="text-muted text-uppercase">
{{- partial "utilities/date.html" (dict "date" .Date "format" "long") -}}
&bull; {{ .ReadingTime }}&nbsp;{{ i18n "minutesShort" }} {{ i18n "read" }}
&nbsp;&bull; {{ .ReadingTime }} {{ i18n "minutesShort" }} {{ i18n "read" }}
{{ if isset .Params "tags" -}}
{{ range first 1 (.GetTerms "tags") -}}
&bull; <a href="{{ (path.Join .Page.RelPermalink) | relURL }}" class="text-decoration-none text-primary" aria-label="Tag: {{ .LinkTitle }}">{{ .LinkTitle }}</a>

View File

@@ -39,22 +39,22 @@
{{- with .First }}
{{- if ne $currentPageNumber .PageNumber }}
<li class="page-item">
<a href="{{ .URL }}" aria-label="First" class="page-link" role="button"><span aria-hidden="true"><i class="fas fa-angle-double-left"></i></span></a>
<a href="{{ .URL }}" aria-label="{{ T "paginationFirst" }}" class="page-link" role="button"><span aria-hidden="true"><i class="fas fa-angle-double-left"></i></span></a>
</li>
{{- else }}
<li class="page-item disabled">
<a aria-disabled="true" aria-label="First" class="page-link" role="button" tabindex="-1"><span aria-hidden="true"><i class="fas fa-angle-double-left"></i></span></a>
<a aria-disabled="true" aria-label="{{ T "paginationFirst" }}" class="page-link" role="button" tabindex="-1"><span aria-hidden="true"><i class="fas fa-angle-double-left"></i></span></a>
</li>
{{- end }}
{{- end }}
{{- with .Prev }}
<li class="page-item">
<a href="{{ .URL }}" aria-label="Previous" class="page-link" role="button"><span aria-hidden="true">Previous</span></a>
<a href="{{ .URL }}" aria-label="{{ T "paginationPrevious" }}" class="page-link" role="button"><span aria-hidden="true">{{ T "paginationPrevious" }}</span></a>
</li>
{{- else }}
<li class="page-item disabled">
<a aria-disabled="true" aria-label="Previous" class="page-link" role="button" tabindex="-1"><span aria-hidden="true">Previous</span></a>
<a aria-disabled="true" aria-label="{{ T "paginationPrevious" }}" class="page-link" role="button" tabindex="-1"><span aria-hidden="true">{{ T "paginationPrevious" }}</span></a>
</li>
{{- end }}
@@ -79,22 +79,22 @@
{{- with .Next }}
<li class="page-item">
<a href="{{ .URL }}" aria-label="Next" class="page-link" role="button"><span aria-hidden="true">Next</span></a>
<a href="{{ .URL }}" aria-label="{{ T "paginationNext" }}" class="page-link" role="button"><span aria-hidden="true">{{ T "paginationNext" }}</span></a>
</li>
{{- else }}
<li class="page-item disabled">
<a aria-disabled="true" aria-label="Next" class="page-link" role="button" tabindex="-1"><span aria-hidden="true">Next</span></a>
<a aria-disabled="true" aria-label="{{ T "paginationNext" }}" class="page-link" role="button" tabindex="-1"><span aria-hidden="true">{{ T "paginationNext" }}</span></a>
</li>
{{- end }}
{{- with .Last }}
{{- if ne $currentPageNumber .PageNumber }}
<li class="page-item">
<a href="{{ .URL }}" aria-label="Last" class="page-link" role="button"><span aria-hidden="true"><i class="fas fa-angle-double-right"></i></span></a>
<a href="{{ .URL }}" aria-label="{{ T "paginationLast" }}" class="page-link" role="button"><span aria-hidden="true"><i class="fas fa-angle-double-right"></i></span></a>
</li>
{{- else }}
<li class="page-item disabled">
<a aria-disabled="true" aria-label="Last" class="page-link" role="button" tabindex="-1"><span aria-hidden="true"><i class="fas fa-angle-double-right"></i></span></a>
<a aria-disabled="true" aria-label="{{ T "paginationLast" }}" class="page-link" role="button" tabindex="-1"><span aria-hidden="true"><i class="fas fa-angle-double-right"></i></span></a>
</li>
{{- end }}
{{- end }}
@@ -110,14 +110,14 @@
{{- with .First }}
{{- if ne $currentPageNumber .PageNumber }}
<li class="page-item">
<a href="{{ .URL }}" aria-label="First" class="page-link" role="button"><span aria-hidden="true">Previous</span></a>
<a href="{{ .URL }}" aria-label="{{ T "paginationFirst" }}" class="page-link" role="button"><span aria-hidden="true">{{ T "paginationFirst" }}</span></a>
</li>
{{- end }}
{{- end }}
{{- with .Prev }}
<li class="page-item">
<a href="{{ .URL }}" aria-label="Previous" class="page-link" role="button"><span aria-hidden="true">Previous</span></a>
<a href="{{ .URL }}" aria-label="{{ T "paginationPrevious" }}" class="page-link" role="button"><span aria-hidden="true">{{ T "paginationPrevious" }}</span></a>
</li>
{{- end }}
@@ -142,16 +142,16 @@
{{- with .Next }}
<li class="page-item">
<a href="{{ .URL }}" aria-label="Next" class="page-link" role="button"><span aria-hidden="true">Next</span></a>
<a href="{{ .URL }}" aria-label="{{ T "paginationNext" }}" class="page-link" role="button"><span aria-hidden="true">{{ T "paginationNext" }}</span></a>
</li>
{{- end }}
{{- with .Last }}
{{- if ne $currentPageNumber .PageNumber }}
<li class="page-item">
<a href="{{ .URL }}" aria-label="Last" class="page-link" role="button"><span aria-hidden="true"><i class="fas fa-angle-double-right"></i></span></a>
<a href="{{ .URL }}" aria-label="{{ T "paginationLast" }}" class="page-link" role="button"><span aria-hidden="true"><i class="fas fa-angle-double-right"></i></span></a>
</li>
{{- end }}
{{- end }}
{{- end }}
{{- end -}}
{{- end -}}

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@markdumay/hugo-theme-hinode",
"version": "0.7.7",
"version": "0.7.8",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@markdumay/hugo-theme-hinode",
"version": "0.7.7",
"version": "0.7.8",
"hasInstallScript": true,
"license": "MIT",
"devDependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "@markdumay/hugo-theme-hinode",
"version": "0.7.7",
"version": "0.7.8",
"description": "Hinode is a clean blog theme for Hugo, an open-source static site generator",
"main": "index.js",
"publishConfig": {