diff --git a/exampleSite/assets/jsconfig.json b/exampleSite/assets/jsconfig.json index 38eeff892..fdd371fe8 100644 --- a/exampleSite/assets/jsconfig.json +++ b/exampleSite/assets/jsconfig.json @@ -3,7 +3,7 @@ "baseUrl": ".", "paths": { "*": [ - "..\\..\\assets\\*" + "../../assets/*" ] } } diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 04dc264d0..3e9f5c6c1 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -666,12 +666,18 @@ enableEmoji = true # whether to show link to Raw Markdown content of the content # 是否显示原始 Markdown 文档内容的链接 linkToMarkdown = true + # configure the link to view source the post + linkToSource = "https://github.com/HEIGE-PCloud/DoIt/blob/main/exampleSite/content/{path}" # configure the link to edit the post # 配置编辑文章的链接 linkToEdit = "https://github.com/HEIGE-PCloud/DoIt/edit/main/exampleSite/content/{path}" # https://github.com/user/repo/edit/main/{path} # https://gitlab.com/user/repo/-/edit/main/{path} # https://bitbucket.org/user/repo/src/main/{path}?mode=edit + # configure the link to report issue the post + linkToReport = "https://github.com/HEIGE-PCloud/DoIt/issues/new?title=[bug]%20{title}&body=|Field|Value|%0A|-|-|%0A|Title|{title}|%0A|Url|{url}|%0A|Filename|https://github.com/HEIGE-PCloud/DoIt/blob/main/exampleSite/content/{path}|" + # https://github.com/user/repo/issues/new?title=[bug]%20{title}&body=|Field|Value|%0A|-|-|%0A|Title|{title}|%0A|Url|{url}|%0A|Filename|https://github.com/user/repo/blob/main/{path}|" + # https://gitlab.com/user/repo/-/issues/new?issue[title]=[bug]%20{title}&issue[description]=|Field|Value|%0A|-|-|%0A|Title|{title}|%0A|Url|{url}|%0A|Filename|https://gitlab.com/user/repo/-/edit/main/{path}| # whether to show the full text content in RSS # 是否在 RSS 中显示全文内容 rssFullText = false diff --git a/i18n/en.toml b/i18n/en.toml index cca0fa097..0fbd56d83 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -160,11 +160,17 @@ other = "Author" other = "Updated on {{ .Date }}" [readMarkdown] -other = "Read Markdown" +other = "Read markdown" + +[viewSource] +other = "View source" [editThisPage] other = "Edit this page" +[reportThisPage] +other = "Report issue" + [back] other = "Back" diff --git a/i18n/zh-CN.toml b/i18n/zh-CN.toml index 5bbe75736..e2dae43f7 100644 --- a/i18n/zh-CN.toml +++ b/i18n/zh-CN.toml @@ -166,9 +166,15 @@ other = "更新于 {{ .Date }}" [readMarkdown] other = "阅读原始文档" +[viewSource] +other = "查看源代码" + [editThisPage] other = "编辑此页" +[reportThisPage] +other = "报告问题" + [back] other = "返回" diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index a214a3143..b2660d995 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -27,26 +27,40 @@