Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arulrajnet/attila-demo
This is the demo blog of theme attila
https://github.com/arulrajnet/attila-demo
attila pelican pelican-theme static-site
Last synced: 2 months ago
JSON representation
This is the demo blog of theme attila
- Host: GitHub
- URL: https://github.com/arulrajnet/attila-demo
- Owner: arulrajnet
- License: mit
- Created: 2016-09-17T18:04:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-08T15:08:36.000Z (5 months ago)
- Last Synced: 2024-11-09T04:36:31.762Z (2 months ago)
- Topics: attila, pelican, pelican-theme, static-site
- Language: Python
- Homepage: https://arulrajnet.github.io/attila-demo
- Size: 5.28 MB
- Stars: 6
- Watchers: 5
- Forks: 29
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Attila Demo
----------------* [Setup](#setup)
* [Clone and install theme](#clone-and-install-theme)
* [Convert to your blog](#convert-to-your-blog)
* [Build](#build)This is the demo blog of theme [attila](https://github.com/arulrajnet/attila). Blog powered by pelican, hosted on [https://arulrajnet.github.io/attila-demo](https://arulrajnet.github.io/attila-demo)
### Setup
you can take this repo and start static [blogging](#convert-to-your-blog)
**Requirements**
Install python3 depends on your OS
sudo apt-get install python3-pip python3-dev
Install virtualenv module
sudo pip3 install -U virtualenv
### Clone and install theme
Clone the blog
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 --recursiveInstall the following module for pelican inside `attila-demo` folder
virtualenv .venv
source .venv/bin/activate
pip3 install -U pelican Markdown ghp-import invoke awscli pysvg Pygments requests webassets pillow jsmin cssmin BeautifulSoup4To activate virtualenv in windows(git-bash)
source .venv/Scripts/activate
**Install attila theme**
git clone --depth=1 https://github.com/arulrajnet/attila
pelican-themes -i ${PWD}/attila
pelican-themes -l### Convert to your blog
* Change [author](https://github.com/arulrajnet/attila-demo/blob/master/pelicanconf.py#L5), sitename and description
* Change [social](https://github.com/arulrajnet/attila-demo/blob/master/pelicanconf.py#L39) links
* Change [disqus](https://github.com/arulrajnet/attila-demo/blob/master/pelicanconf.py#L133) and google analytics
* Change [author bio](https://github.com/arulrajnet/attila-demo/blob/master/pelicanconf.py#L173C1-L173C13)
* Change [site url](https://github.com/arulrajnet/attila-demo/blob/master/publishconf.py#L13)
* Delete existing content. `rm -rf content/*`
* Update the git config and push to your repo.Note: Change your branch name instead of "main"
```
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
```### Build
invoke commands
invoke --list
invoke build
invoke serveOR make commands
make help
make html
make serveThen visit [http://localhost:8000](http://localhost:8000)
**To publish**
invoke gh-pages
OR
make publish
make github