diff --git a/config.json b/config.json index e89099c..959a899 100644 --- a/config.json +++ b/config.json @@ -16,5 +16,6 @@ "tag": "tags", "project": "projects", "author": "authors" - } + }, + "pygmentsCodeFences": true } diff --git a/themes/patek/assets/img/unknown-author.png b/themes/patek/assets/img/unknown-author.png new file mode 100644 index 0000000..c0f0fba Binary files /dev/null and b/themes/patek/assets/img/unknown-author.png differ diff --git a/themes/patek/assets/img/unknown-author.svg b/themes/patek/assets/img/unknown-author.svg new file mode 100644 index 0000000..a3658a3 --- /dev/null +++ b/themes/patek/assets/img/unknown-author.svg @@ -0,0 +1,91 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/themes/patek/i18n/cs.toml b/themes/patek/i18n/cs.toml index e6762ee..acb31fc 100644 --- a/themes/patek/i18n/cs.toml +++ b/themes/patek/i18n/cs.toml @@ -18,4 +18,7 @@ few = "Členové" other = "Členové" [leader] -other = "Vedoucí" \ No newline at end of file +other = "Vedoucí" + +[missing_author] +other = "{{ .Name }} nám o sobě nic neřekl/a." \ No newline at end of file diff --git a/themes/patek/i18n/en.toml b/themes/patek/i18n/en.toml index 1b9bd8b..558e406 100644 --- a/themes/patek/i18n/en.toml +++ b/themes/patek/i18n/en.toml @@ -16,4 +16,7 @@ one = "Member" other = "Members" [leader] -other = "Leader" \ No newline at end of file +other = "Leader" + +[missing_author] +other = "{{ .Name }} didn't tell us anything about themselves." \ No newline at end of file diff --git a/themes/patek/layouts/taxonomy/author.html b/themes/patek/layouts/taxonomy/author.html index f9d186c..570ce7d 100644 --- a/themes/patek/layouts/taxonomy/author.html +++ b/themes/patek/layouts/taxonomy/author.html @@ -3,14 +3,23 @@
- User avatar + {{ if ne .Params.avatar nil }} + User avatar + {{ else }} + {{ $authorImg := resources.Get "img/unknown-author.png" }} + User avatar + {{ end }}

{{ .Title }}

{{ .Params.fullname }}

- {{ .Content }} + {{ if ne .Content "" }} + {{ .Content }} + {{ else }} + {{ T "missing_author" .Page }} + {{ end }}