diff --git a/.gitignore b/.gitignore index b7faf40..dfcba97 100644 --- a/.gitignore +++ b/.gitignore @@ -205,3 +205,7 @@ cython_debug/ marimo/_static/ marimo/_lsp/ __marimo__/ + +# Pelican +output/ +.cache/ diff --git a/pelicanconf.py b/pelicanconf.py new file mode 100644 index 0000000..8a9a1c8 --- /dev/null +++ b/pelicanconf.py @@ -0,0 +1,35 @@ +import attila + +AUTHOR = 'paulo ribeiro' +SITENAME = 'd i f f r a c t i o n' +SITEURL = "https://diffraction.pt/blog" + +PATH = "content" + +TIMEZONE = 'Europe/Lisbon' + +DEFAULT_LANG = 'en' + +# 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 + +# Theme +THEME = attila.get_path() +HOME_COLOR = '#222222' # fallback header colour when no cover image is set + +# Plugins +SEO_REPORT = False # suppress seo_report.html generation + +# Social +SOCIAL = ( + ('github', 'https://github.com/prcr'), +) + +DEFAULT_PAGINATION = False + +# Uncomment following line if you want document-relative URLs when developing +# RELATIVE_URLS = True diff --git a/publishconf.py b/publishconf.py new file mode 100644 index 0000000..51e0f9c --- /dev/null +++ b/publishconf.py @@ -0,0 +1,22 @@ +# This file is only used if you use `make publish` or +# explicitly specify it as your config file. + +import os +import sys + +sys.path.append(os.curdir) +from pelicanconf import * + +# If your site is available via HTTPS, make sure SITEURL begins with https:// +SITEURL = "https://diffraction.pt/blog" +RELATIVE_URLS = False + +FEED_ALL_ATOM = "feeds/all.atom.xml" +CATEGORY_FEED_ATOM = "feeds/{slug}.atom.xml" + +DELETE_OUTPUT_DIRECTORY = True + +# Following items are often useful when publishing + +# DISQUS_SITENAME = "" +# GOOGLE_ANALYTICS = ""