i18n: Add translation support for "draft"

This commit is contained in:
Nico Rügheimer 2022-05-07 23:04:56 +02:00
parent 1478c0bc17
commit a119d2ba6b
No known key found for this signature in database
GPG Key ID: EDDDC11DCC46358C
5 changed files with 9 additions and 3 deletions

View File

@ -31,3 +31,6 @@
- id: code_copied - id: code_copied
translation: "Kopiert!" translation: "Kopiert!"
- id: draft
translation: "Entwurf"

View File

@ -31,3 +31,6 @@
- id: code_copied - id: code_copied
translation: "copied!" translation: "copied!"
- id: draft
translation: "draft"

View File

@ -30,7 +30,7 @@
<div class="archive-entry"> <div class="archive-entry">
<h3 class="archive-entry-title"> <h3 class="archive-entry-title">
{{- .Title | markdownify }} {{- .Title | markdownify }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }} {{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[{{ default (i18n "draft" | default "draft") }}]</span></sup>{{- end }}
</h3> </h3>
<div class="archive-meta"> <div class="archive-meta">
{{- partial "post_meta.html" . -}} {{- partial "post_meta.html" . -}}

View File

@ -66,7 +66,7 @@
<header class="entry-header"> <header class="entry-header">
<h2> <h2>
{{- .Title }} {{- .Title }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }} {{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[{{ default (i18n "draft" | default "draft") }}]</span></sup>{{- end }}
</h2> </h2>
</header> </header>
{{- if (ne (.Param "hideSummary") true) }} {{- if (ne (.Param "hideSummary") true) }}

View File

@ -5,7 +5,7 @@
{{ partial "breadcrumbs.html" . }} {{ partial "breadcrumbs.html" . }}
<h1 class="post-title"> <h1 class="post-title">
{{ .Title }} {{ .Title }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }} {{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[{{ default (i18n "draft" | default "draft") }}]</span></sup>{{- end }}
</h1> </h1>
{{- if .Description }} {{- if .Description }}
<div class="post-description"> <div class="post-description">