diff --git a/assets/css/main.css b/assets/css/main.css index a57c17b..57bbce5 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -494,6 +494,18 @@ article header h1 a { margin-right: 1em; } +.post-authors { + display: inline; + list-style-type: none; + padding: 0; + margin: 0; +} + +.post-authors li { + display: inline; + margin-right: 1em; +} + article img { max-width: 100%; display: block; diff --git a/exampleSiteMultilingual/config.toml b/exampleSiteMultilingual/config.toml index b85cba7..c8a8807 100644 --- a/exampleSiteMultilingual/config.toml +++ b/exampleSiteMultilingual/config.toml @@ -89,6 +89,7 @@ locale = "pl-pl" [taxonomies] category = "categories" tag = "tags" +author = "authors" [markup.goldmark.renderer] unsafe = true diff --git a/exampleSiteMultilingual/content/post/markdown-syntax.md b/exampleSiteMultilingual/content/post/markdown-syntax.md index 49114db..b6c00ec 100644 --- a/exampleSiteMultilingual/content/post/markdown-syntax.md +++ b/exampleSiteMultilingual/content/post/markdown-syntax.md @@ -13,6 +13,7 @@ categories = [ "themes", "syntax", ] +authors = ["Mitrichius", "hugo"] aliases = ["migrate-from-jekyl"] favorite = true +++ diff --git a/exampleSiteMultilingual/content/post/placeholder-text.md b/exampleSiteMultilingual/content/post/placeholder-text.md index 29ff09f..1e9ee4e 100644 --- a/exampleSiteMultilingual/content/post/placeholder-text.md +++ b/exampleSiteMultilingual/content/post/placeholder-text.md @@ -7,6 +7,7 @@ tags = [ "markdown", "text", ] +authors = ["hugo"] +++ Lorem est tota propiore conpellat pectoribus de diff --git a/i18n/en.yaml b/i18n/en.yaml index 45e7d3f..2ee8a65 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -16,6 +16,9 @@ toOldPosts: tag: other: "tag" +author: + other: "author" + Tags: other: "Tags" @@ -31,6 +34,9 @@ Categories: toAllTags: other: "to all tags" +toAllAuthors: + other: "to all authors" + toAllCategories: other: "to all categories" diff --git a/i18n/zh-cn.yaml b/i18n/zh-cn.yaml index 858f820..68d33e9 100644 --- a/i18n/zh-cn.yaml +++ b/i18n/zh-cn.yaml @@ -16,6 +16,9 @@ toOldPosts: tag: other: "标签" +author: + other: "作者" + Tags: other: "标签" @@ -31,6 +34,9 @@ Categories: toAllTags: other: "所有标签" +toAllAuthors: + other: "所有作者" + toAllCategories: other: "所有类别" diff --git a/layouts/partials/post-info.html b/layouts/partials/post-info.html index edfc6a3..b56c8f2 100644 --- a/layouts/partials/post-info.html +++ b/layouts/partials/post-info.html @@ -20,14 +20,22 @@