From ffeda211d34757c51e5c1a5fe54379177a3bc2b8 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 9 Nov 2021 00:34:33 +0100 Subject: [PATCH] draft --- pelicanconf.py | 14 ++++-- themes/pelican-striped-html5up/pelicanconf.py | 39 ---------------- .../templates/base.html | 46 ++++++++++--------- 3 files changed, 33 insertions(+), 66 deletions(-) delete mode 100644 themes/pelican-striped-html5up/pelicanconf.py diff --git a/pelicanconf.py b/pelicanconf.py index 51b1f2f..f68c30c 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -1,12 +1,14 @@ AUTHOR = 'MSPE' SITENAME = 'RWX work' -SITEURL = '' +SITESUBTITLE = 'Read Write eXecute' +SITEURL = 'https://blog.rwx.work' PATH = 'content' TIMEZONE = 'Europe/Paris' DEFAULT_LANG = 'en' +DEFAULT_DATE_FORMAT = '%B %d, %Y' FEED_ALL_ATOM = None CATEGORY_FEED_ATOM = None @@ -14,8 +16,14 @@ TRANSLATION_FEED_ATOM = None AUTHOR_FEED_ATOM = None AUTHOR_FEED_RSS = None +DEFAULT_PAGINATION = False +RELATIVE_URLS = True + THEME = 'themes/pelican-striped-html5up' +STATIC_PATHS = ['images'] +# PLUGINS = ['neighbors'] + HOSTS = ( ('rwx.work', 'https://blog.rwx.work'), ('envs.net', 'https://mspe.envs.net'), @@ -72,7 +80,3 @@ SOCIAL = ( ('linkedin.com', 'https://www.linkedin.com/in/marc-beninca'), ('lbry.tv', 'https://lbry.tv/@marc-beninca:d'), ) - -DEFAULT_PAGINATION = False - -RELATIVE_URLS = True diff --git a/themes/pelican-striped-html5up/pelicanconf.py b/themes/pelican-striped-html5up/pelicanconf.py deleted file mode 100644 index d30536d..0000000 --- a/themes/pelican-striped-html5up/pelicanconf.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- # -from __future__ import unicode_literals - -AUTHOR = '' -SITENAME = '' -SITESUBTITLE = '' -SITEURL = 'localhost' - -PATH = 'content' - -TIMEZONE = 'UTC' - -DEFAULT_LANG = 'en' -DEFAULT_DATE_FORMAT = '%B %d, %Y' -# Feed generation is usually not desired when developing -FEED_ALL_ATOM = None -CATEGORY_FEED_ATOM = None -TRANSLATION_FEED_ATOM = None -AUTHOR_FEED_ATOM = None -AUTHOR_FEED_RSS = None - -# Blogroll -LINKS = (('Pelican', 'http://getpelican.com/'), - ('Python.org', 'http://python.org/'), - ('Jinja2', 'http://jinja.pocoo.org/'), - ('You can modify those links in your config file', '#'),) - -# 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 -# THEME = '' -STATIC_PATHS = ['images'] -PLUGINS = ['neighbors'] diff --git a/themes/pelican-striped-html5up/templates/base.html b/themes/pelican-striped-html5up/templates/base.html index 27d90c3..1810753 100644 --- a/themes/pelican-striped-html5up/templates/base.html +++ b/themes/pelican-striped-html5up/templates/base.html @@ -43,19 +43,36 @@ {% block content %} {% endblock %}