diff --git a/Makefile b/Makefile index 5fd4324..795f17f 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ OUTPUTDIR=$(BASEDIR)/output CONFFILE=$(BASEDIR)/pelicanconf.py PUBLISHCONF=$(BASEDIR)/publishconf.py -GITHUB_PAGES_BRANCH=main +GITHUB_PAGES_BRANCH=gh-pages DEBUG ?= 0 diff --git a/pages-publish.sh b/pages-publish.sh index e69de29..1f7dc74 100644 --- a/pages-publish.sh +++ b/pages-publish.sh @@ -0,0 +1,17 @@ +#! /bin/bash + +# install tools +apt-get update && apt-get install -y git make python3 python3-pip + +# setup github config +git config user.email "185067@nith.ac.in" +git config user.name "avinal" + +# install dependencies +pip3 install -r requirements.txt + +# pelican commands +pelican-themes --install /themes/alchemy --verbose + +# publish to github pages +make github \ No newline at end of file diff --git a/pelicanconf.py b/pelicanconf.py index 613038d..a2e8978 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -2,11 +2,11 @@ # -*- coding: utf-8 -*- # AUTHOR = 'Avinal' -SITENAME = 'The Intesteller Twillight' +SITENAME = 'The Interstellar Twilight' SITEURL = '' - +THEME = 'alchemy' PATH = 'content' - +SITEIMAGE = '/images/profile.jpg width=150 height=150' TIMEZONE = 'Asia/Kolkata' DEFAULT_LANG = 'en' @@ -19,16 +19,10 @@ AUTHOR_FEED_ATOM = None AUTHOR_FEED_RSS = None # Blogroll -LINKS = (('Pelican', 'https://getpelican.com/'), - ('Python.org', 'https://www.python.org/'), - ('Jinja2', 'https://palletsprojects.com/p/jinja/'), - ('You can modify those links in your config file', '#'),) +LINKS = (('GitHub', 'https://github.com/avinal'), + ('LinkedIn', ''),) -# Social widget -SOCIAL = (('You can add links in your config file', '#'), - ('Another social link', '#'),) DEFAULT_PAGINATION = 10 -# Uncomment following line if you want document-relative URLs when developing -#RELATIVE_URLS = True \ No newline at end of file + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5f13f5f --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +pelican +ghp-import \ No newline at end of file