diff --git a/exampleSite/content/categories/with-slug/_index.md b/exampleSite/content/categories/with-slug/_index.md new file mode 100644 index 0000000..13cdcfa --- /dev/null +++ b/exampleSite/content/categories/with-slug/_index.md @@ -0,0 +1,4 @@ +--- +title: A Category with Slug +slug: with-slug +--- diff --git a/exampleSite/content/categories/with-slug/_index.zh-cn.md b/exampleSite/content/categories/with-slug/_index.zh-cn.md new file mode 100644 index 0000000..0a6b32d --- /dev/null +++ b/exampleSite/content/categories/with-slug/_index.zh-cn.md @@ -0,0 +1,4 @@ +--- +title: 自定义 Slug 的分类 +slug: with-slug +--- diff --git a/exampleSite/content/post/image-process/index.md b/exampleSite/content/post/image-process/index.md index 6520537..13685ea 100644 --- a/exampleSite/content/post/image-process/index.md +++ b/exampleSite/content/post/image-process/index.md @@ -3,9 +3,10 @@ author = "Hugo Authors" title = "Image Process" date = "2023-12-01" description = "Demo of Hugo's image processing" -tags = [] +tags = ["custom"] toc = false image = "images/hugo-logo-wide.svg" +categories = ["with-slug"] +++ ![Photo by Behnam Norouzi on Unsplash](./images/behnam-norouzi-_1ok63FFlM4-unsplash.jpg "Photo by Behnam Norouzi on Unsplash") diff --git a/exampleSite/content/post/image-process/index.zh-cn.md b/exampleSite/content/post/image-process/index.zh-cn.md index 6b2e8f3..9e0b5f7 100644 --- a/exampleSite/content/post/image-process/index.zh-cn.md +++ b/exampleSite/content/post/image-process/index.zh-cn.md @@ -3,9 +3,10 @@ author = "Hugo Authors" title = "图片处理" date = "2023-12-01" description = "关于Hugo中图片处理的示例" -tags = [] +tags = ["custom"] toc = false image = "images/hugo-logo-wide.svg" +categories = ["with-slug"] +++ ![Photo by Behnam Norouzi on Unsplash](./images/behnam-norouzi-_1ok63FFlM4-unsplash.jpg "Photo by Behnam Norouzi on Unsplash") diff --git a/exampleSite/content/tags/custom/_index.md b/exampleSite/content/tags/custom/_index.md new file mode 100644 index 0000000..8a1d891 --- /dev/null +++ b/exampleSite/content/tags/custom/_index.md @@ -0,0 +1,4 @@ +--- +title: CustomTag +slug: custom +--- diff --git a/exampleSite/content/tags/custom/_index.zh-cn.md b/exampleSite/content/tags/custom/_index.zh-cn.md new file mode 100644 index 0000000..1830a75 --- /dev/null +++ b/exampleSite/content/tags/custom/_index.zh-cn.md @@ -0,0 +1,4 @@ +--- +title: 随便一个标签 +slug: custom +--- diff --git a/layouts/partials/block/taxonomies.html b/layouts/partials/block/taxonomies.html index c41944b..4714084 100644 --- a/layouts/partials/block/taxonomies.html +++ b/layouts/partials/block/taxonomies.html @@ -1,24 +1,24 @@ {{ if (or .Params.categories .Params.tags) }}