新建Hugo站点&主题

步骤:
  1. 新建一个文件夹,用于存放WEB内容&hugo主题
  2. 初始化该文件夹
  3. 下载主题relearn并解压到themes/relearn目录
  4. 将下载的主题应用
获得雨果主题
Step 1:
hugo new site /site
Step 2:
cd /site && git init
Step 3:
git submodule add https://github.com/McShelby/hugo-theme-relearn.git themes/hugo-theme-relearn-main

or

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.zip
Step 4:
echo "theme = 'hugo-theme-relearn-main'" >> hugo.toml