Skip to content

arulrajnet/attila-demo

Repository files navigation

Attila Demo

This is the demo blog of theme attila. Blog powered by pelican, hosted on https://arulrajnet.github.io/attila-demo

Setup

you can take this repo and start static blogging

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 --recursive

Install the following module for pelican inside attila-demo folder

virtualenv .venv
source .venv/bin/activate
pip install .

To activate virtualenv in windows(git-bash)

source .venv/Scripts/activate

Install attila theme

This is not needed. All the required dependencies are already installed. This is just an example to install the theme.

pip install git+https://github.com/arulrajnet/attila.git@master

OR

git clone --depth=1 https://github.com/arulrajnet/attila
pelican-themes -i ${PWD}/attila
pelican-themes -l

Install using pip is recommended

Convert to your blog

  • Change author, sitename and description
  • Change social links
  • Change disqus and google analytics
  • Change author bio
  • Change site url
  • 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 serve

OR make commands

make help
make html
make serve

Then visit http://localhost:8000

To publish

invoke gh-pages

OR

make publish
make github