26 lines
875 B
Markdown
26 lines
875 B
Markdown
## Create a site
|
||
Use `pelican-quickstart` to create a new site.
|
||
|
||
## Plugin
|
||
```bash
|
||
git clone --recursive https://github.com/getpelican/pelican-plugins.git
|
||
```
|
||
|
||
## Theme
|
||
先把所有佈景主題都clone下來:
|
||
```bash
|
||
git clone --recursive https://github.com/getpelican/pelican-themes.git
|
||
```
|
||
|
||
把`pelicanconf.py`裡面的`THEME`指向theme的目錄就可以換佈景主題了。例如要用[[blue-penguin](https://github.com/jody-frankowski/blue-penguin)]這一個主題。把`pelicanconf.py`裡面加入`THEME = 'pelican-themes/blue-penguin'`就可以了。
|
||
|
||
## 預覽
|
||
```
|
||
make html
|
||
make serve
|
||
```
|
||
|
||
參考:
|
||
- [koko's Note – Python - 安裝 Pelican Theme 來改變你的靜態網站主題](https://note.koko.guru/install-pelican-theme.html)
|
||
- [nest theme](https://github.com/molivier/nest)
|
||
- [Flex theme](https://github.com/alexandrevicenzi/Flex/wiki/Custom-Settings) |