# 新建Hugo站点&主题<no value>


##### 步骤：
1. 新建一个文件夹，用于存放WEB内容&hugo主题
2. 初始化该文件夹
3. 下载主题`relearn`并解压到`themes/relearn`目录
4. 将下载的主题应用


获得雨果主题 https://themes.gohugo.io

##### 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
```