attila demo
1.0.0
這是主題Attila的演示博客。博客由Pelican提供動力,託管在https://arulrajnet.github.io/attila-demo上
您可以使用此回購併開始靜態博客
要求
安裝Python3取決於您的操作系統
sudo apt-get install python3-pip python3-dev
安裝Virtualenv模塊
sudo pip3 install -U virtualenv
克隆博客
git clone --depth=1 https://github.com/arulrajnet/attila-demo
cd attila-demo
git submodule init
cd pelican-plugins
git pull
git checkout master
cd ..
git submodule update --init --recursive
在attila-demo
文件夾中安裝以下鵜鶘的模塊
virtualenv .venv
source .venv/bin/activate
pip install .
激活Windows中的Virtualenv(git-bash)
source .venv/Scripts/activate
安裝Attila主題
這不需要。所有所需的依賴項已經安裝。這只是安裝主題的示例。
pip install git+https://github.com/arulrajnet/attila.git@master
或者
git clone --depth=1 https://github.com/arulrajnet/attila
pelican-themes -i ${PWD}/attila
pelican-themes -l
建議使用PIP安裝
rm -rf content/*
注意:更改您的分支名稱,而不是“主”
rm -rf .git
git init
git remote add origin https://github.com/username/new-repository.git
git branch -M main
git push -u origin main
調用命令
invoke --list
invoke build
invoke serve
或提出命令
make help
make html
make serve
然後訪問http:// localhost:8000
發布
invoke gh-pages
或者
make publish
make github