i18n: Make the tag "draft" ready for translations

This commit is contained in:
roneo.org 2022-08-17 20:14:08 +02:00
parent eba92edd83
commit b4baa24d9d
5 changed files with 9 additions and 3 deletions

View File

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

View File

@ -31,3 +31,6 @@
- id: code_copied
translation: "Copié !"
- id: draft
translation: "Brouillon"

View File

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

View File

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

View File

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