diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/axionl.github.io-fork.iml b/.idea/axionl.github.io-fork.iml new file mode 100644 index 0000000..0c8867d --- /dev/null +++ b/.idea/axionl.github.io-fork.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..8fcae2c --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/i18n/zh-cn.yaml b/i18n/zh-cn.yaml new file mode 100644 index 0000000..1f41cfb --- /dev/null +++ b/i18n/zh-cn.yaml @@ -0,0 +1,86 @@ +toggleMenu: + other: 切换菜单 + +darkMode: + other: 暗色模式 + +article: + back: + other: 返回 + + tableOfContents: + other: 目录 + + relatedContent: + other: 相关文章 + + lastUpdatedOn: + other: 最后更新于 + + readingTime: + other: "阅读时长: {{ .Count }} 分钟" + +notFound: + title: + other: 404 错误 + subtitle: + other: 页面不存在 + +widget: + archives: + title: + other: 归档 + + more: + other: 更多 + + tagCloud: + title: + other: 标签云 + + categoriesCloud: + title: + other: 分类 + +search: + title: + other: 搜索 + + placeholder: + other: 输入关键词... + + resultTitle: + other: "#PAGES_COUNT 个结果 (用时 #TIME_SECONDS 秒)" + +footer: + builtWith: + other: Built with {{ .Generator }} + + designedBy: + other: 主题 {{ .Theme }} 由 {{ .DesignedBy }} 设计 + +home: + - id: 1月 + translation: Jan + - id: 2月 + translation: Feb + - id: 3月 + translation: Mar + - id: 4月 + translation: Apr + - id: 5月 + translation: May + - id: 6月 + translation: Jun + - id: 7月 + translation: Jul + - id: 8月 + translation: Aug + - id: 9月 + translation: Sep + - id: 10月 + translation: Oct + - id: 11月 + translation: Nov + - id: 12月 + translation: Dec diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html new file mode 100644 index 0000000..d8c5129 --- /dev/null +++ b/layouts/partials/article/components/details.html @@ -0,0 +1,64 @@ +
+ {{ if .Params.categories }} +
+ {{ range (.GetTerms "categories") }} + + {{ .LinkTitle }} + + {{ end }} +
+ {{ end }} + +
+

+ + {{- .Title -}} + +

+ + {{ with .Params.description }} +

+ {{ . }} +

+ {{ end }} +
+ + {{ $showReadingTime := .Params.readingTime | default (.Site.Params.article.readingTime) }} + {{ $showDate := not .Date.IsZero }} + {{ $showFooter := or $showDate $showReadingTime }} + {{ if $showFooter }} + + {{ end }} + + {{ if .IsTranslated }} + + {{ end }} +