新建Hugo站点&主题
步骤:
- 新建一个文件夹,用于存放WEB内容&hugo主题
- 初始化该文件夹
- 下载主题
relearn并解压到themes/relearn目录 - 将下载的主题应用
Step 1:
hugo new site /siteStep 2:
cd /site && git initStep 3:
git submodule add https://github.com/McShelby/hugo-theme-relearn.git themes/hugo-theme-relearn-mainor
wget -P /Downloads https://github.com/McShelby/hugo-theme-relearn/archive/refs/heads/main.zip && 7z x /Downloads/main.zip -o/site/themes && rm -r /Downloads/main.zipStep 4:
echo "theme = 'hugo-theme-relearn-main'" >> hugo.toml