Skip to content

Commit beb9bfe

Browse files
authored
fix: post date (#558)
* fix: post date Signed-off-by: Henry Schreiner <henryfs@princeton.edu> * refactor: simpler logic Signed-off-by: Henry Schreiner <henryfs@princeton.edu> * refactor: pull out parens from translations Signed-off-by: Henry Schreiner <henryfs@princeton.edu> * fix: include date if lastmod empty Signed-off-by: Henry Schreiner <henryfs@princeton.edu> * feat: add creation date, showPageDates to turn off Signed-off-by: Henry Schreiner <henryfs@princeton.edu> * Fix capitalization of 'False' to 'false' in README --------- Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
1 parent 0089e02 commit beb9bfe

File tree

23 files changed

+42
-26
lines changed

23 files changed

+42
-26
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ To avoid this, set the following param in hugo.toml:
217217
selfHosted = true
218218
```
219219

220+
### Other parameters
221+
```toml
222+
[params]
223+
showPageDates = false # disables the dates below pages, can be controlled in page frontmatter, too
224+
```
225+
220226
### Extra shortcodes
221227

222228
There are two extra shortcodes provided (along with the customized figure shortcode):

i18n/br.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- id: postedOnDate
77
translation: "Postado em {{ . }}"
88
- id: lastModified
9-
translation: "(Ultima modificação em {{ . }})"
9+
translation: "Ultima modificação em {{ . }}"
1010
- id: translationsLabel
1111
translation: "Outras linguagens: "
1212
- id: translationsSeparator

i18n/de.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- id: postedOnDate
77
translation: "Gepostet am {{ . }}"
88
- id: lastModified
9-
translation: "(Zuletzt geändert am {{ . }})"
9+
translation: "Zuletzt geändert am {{ . }}"
1010
- id: translationsLabel
1111
translation: "Andere Sprachen: "
1212
- id: translationsSeparator

i18n/dk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- id: postedOnDate
77
translation: "Slået op den {{ . }}"
88
- id: lastModified
9-
translation: "(Senest redigeret den {{ . }})"
9+
translation: "Senest redigeret den {{ . }}"
1010
- id: translationsLabel
1111
translation: "Andre sprog: "
1212
- id: translationsSeparator

i18n/en.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- id: postedOnDate
77
translation: "Posted on {{ . }}"
88
- id: lastModified
9-
translation: "(Last modified on {{ . }})"
9+
translation: "Last modified on {{ . }}"
1010
- id: translationsLabel
1111
translation: "Other languages: "
1212
- id: translationsSeparator

i18n/eo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- id: postedOnDate
77
translation: "Afiŝiĝis je {{ . }}"
88
- id: lastModified
9-
translation: "(Laste aliiĝis je {{ . }})"
9+
translation: "Laste aliiĝis je {{ . }}"
1010
- id: translationsLabel
1111
translation: "Aliaj lingvoj: "
1212
- id: translationsSeparator

i18n/es.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- id: postedOnDate
77
translation: "Publicado el {{ . }}"
88
- id: lastModified
9-
translation: "(Última modificación en {{ . }})"
9+
translation: "Última modificación en {{ . }}"
1010
- id: translationsLabel
1111
translation: "Otros idiomas: "
1212
- id: translationsSeparator

i18n/fr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- id: postedOnDate
77
translation: "Publié le {{ . }}"
88
- id: lastModified
9-
translation: "(Mise à jour le {{ . }})"
9+
translation: "Mise à jour le {{ . }}"
1010
- id: translationsLabel
1111
translation: "Traductions : "
1212
- id: translationsSeparator

i18n/hr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- id: postedOnDate
77
translation: "Obajvljeno na {{ . }}"
88
- id: lastModified
9-
translation: "(Zadnja promjena na {{ . }})"
9+
translation: "Zadnja promjena na {{ . }}"
1010
- id: translationsLabel
1111
translation: "Ostali jezici: "
1212
- id: translationsSeparator

i18n/it.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- id: postedOnDate
77
translation: "Pubblicato il {{ . }}"
88
- id: lastModified
9-
translation: "(Ultima modifica il {{ . }})"
9+
translation: "Ultima modifica il {{ . }}"
1010
- id: translationsLabel
1111
translation: "Altre lingue: "
1212
- id: translationsSeparator

0 commit comments

Comments
 (0)