hugo-theme-stack
hugo-theme-stack copied to clipboard
为带空格的英文分类添加封面
你好,
我尝试对不同类别添加封面,正如你的博客中这样

然而,当我的分类变成英文,且带有空格时
title: test
date: 2020-12-30
categories: ["Machine Learning"]
我应该怎么去操作呢?
现在的方法是在content/categories/目录下建立包含_index.md的文件夹,其文件目录及_index.md内容如下:
content/categories/
└── ml
├── cover.jpg
└── _index.md
_index.md:
---
title: "Machine Learning"
description: "posts for machine learning"
slug: "ml"
image: "cover.jpg"
style:
background: "#2a9d8f"
color: "#fff"
---
然而此时,archive的category界面会有两个Machine Learning的分类,其中一个是自动生成的,另外一个是因为刚刚的操作生成的。我应该怎么样让他们合并为一个,并且成功添加上封面图片呢?
感谢!
刚刚检查了一下url,要用-代替空格建立文件夹
幸苦了。不用管这个issue了