arulrajnet / attila-demo

This is the demo blog of theme attila

Home Page:https://arulrajnet.github.io/attila-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
pip3 install -U pelican Markdown ghp-import invoke awscli pysvg Pygments requests webassets pillow jsmin cssmin BeautifulSoup4

To 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, 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

About

This is the demo blog of theme attila

https://arulrajnet.github.io/attila-demo


Languages

Language:Python 71.5%Language:Makefile 28.3%Language:CSS 0.2%