diff --git a/assets/css/_common/components/post/post-header.scss b/assets/css/_common/components/post/post-header.scss index 25f9cab..31e4e39 100644 --- a/assets/css/_common/components/post/post-header.scss +++ b/assets/css/_common/components/post/post-header.scss @@ -94,9 +94,10 @@ margin: 0 .5em; } +/* Make post meta dislay in oneline .post-meta-item-icon { margin-right: 3px; -} +} */ .post-meta-item-text { @if not $post_meta_item_text { diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index bac466a..5682d46 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -16,11 +16,11 @@ markup: defaultContentLanguage: zh-cn languages: zh-cn: - title: NexT + title: Hugo NexT languageName: 中文 weight: 1 en-us: - title: NexT + title: Hugo NexT languageName: English weight: 2 params: @@ -178,7 +178,7 @@ params: sidebar: # Sidebar Position. - position: right + position: left #position: right # Manual define the sidebar width. If commented, will be default for: @@ -367,7 +367,7 @@ params: # Post edit # Easily browse and edit blog source code online. postEdit: - enable: false + enable: true url: https://github.com/user-name/repo-name/tree/branch-name/subdirectory-name/ # Link for view source #url: https://github.com/user-name/repo-name/edit/branch-name/subdirectory-name/ # Link for fork & edit diff --git a/exampleSite/content/post/hello-world.md b/exampleSite/content/post/hello-world.md index 38688ea..4dae177 100644 --- a/exampleSite/content/post/hello-world.md +++ b/exampleSite/content/post/hello-world.md @@ -19,9 +19,9 @@ url: hello-world.html weight: 1 --- -“Hugo 是现今世界上最快的网站建设框架。” +> “使用 `weight` 关键字置顶文章。” -[Hugo](https://gohugo.io/) 也是最流行的开源静态站点生成器之一。 凭借其惊人的速度和灵活性,Hugo 让建设网站再次变得有趣起来。 +[Hugo](https://gohugo.io/) 是现今世界上最快的网站建设框架,也是最流行的开源静态站点生成器之一。 凭借其惊人的速度和灵活性,Hugo 让建设网站再次变得有趣起来。 diff --git a/exampleSite/content/post/markdown-syntax.md b/exampleSite/content/post/markdown-syntax.md index 6a2423e..b8b5bba 100644 --- a/exampleSite/content/post/markdown-syntax.md +++ b/exampleSite/content/post/markdown-syntax.md @@ -3,8 +3,8 @@ title: "Markdown 语法支持" description: "描述下 NexT 主题所支持的各种 markdown 语法及效果展示。" isCJKLanguage: false -lastmod: 2022-06-01T11:52:18+08:00 -publishDate: 2022-06-01T11:52:18+08:00 +lastmod: 2022-06-03T11:52:18+08:00 +publishDate: 2022-06-03T11:52:18+08:00 author: Mainroad originLink: https://mainroad-demo.netlify.app/post/basic-elements/ diff --git a/i18n/en-us.yaml b/i18n/en-us.yaml index d649dc5..853f472 100644 --- a/i18n/en-us.yaml +++ b/i18n/en-us.yaml @@ -52,6 +52,8 @@ PostTag: other: "Tags" PostReadMore: other: "Read More" +PostEditTitle: + other: Edit this post PostCRAuthor: other: Post Author diff --git a/i18n/zh-cn.yaml b/i18n/zh-cn.yaml index 0333539..4c05500 100644 --- a/i18n/zh-cn.yaml +++ b/i18n/zh-cn.yaml @@ -54,6 +54,8 @@ PostTags: other: 标签 PostReadMore: other: 阅读全文 +PostEditTitle: + other: 编辑 PostCRAuthor: other: 本文作者 diff --git a/layouts/partials/post/post_copyright.html b/layouts/partials/post/post_copyright.html index fe92467..95c79b3 100644 --- a/layouts/partials/post/post_copyright.html +++ b/layouts/partials/post/post_copyright.html @@ -21,7 +21,7 @@ {{- end }}