Skip to content

Commit

Permalink
(fix) sortout https bug
Browse files Browse the repository at this point in the history
  • Loading branch information
urbanophile committed Jan 22, 2024
1 parent 562f8db commit ea226a1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 39 deletions.
59 changes: 21 additions & 38 deletions pelicanconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,72 +2,55 @@
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

####### IMPORTANT ######
# this is only for local development

########## IMPORTANT #################
# this is only for local development #
######################################

# #### Basic settings ####
AUTHOR = "Matt Gibson"
SITENAME = "Matt Gibson"
SITEURL = "http://www.matthew-gibson.com"
RELATIVE_URLS = True
SITESUBTITLE = "Artisanal Data and Software Gibbon"
SITEURL = "https://www.matthew-gibson.com"
TIMEZONE = "Australia/Sydney"


PATH = "content"

TIMEZONE = "Australia/Sydney"

DEFAULT_LANG = "en"

DEFAULT_DATE_FORMAT = "%Y %B %d"


# these features
# AUTHOR_SAVE_AS = False
# AUTHORS_SAVE_AS = False
# CATEGORY_SAVE_AS = False
# CATEGORIES_SAVE_AS = False

# 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

# #### URL setttings ####
STATIC_PATHS = ["images", "extra/robots.txt", "extra/favicon.ico"]
# #### Static Assets ####
STATIC_PATHS = ["images", "extra/robots.txt", "extra/favicon.ico", "extra/CNAME"]
EXTRA_PATH_METADATA = {
"extra/robots.txt": {"path": "robots.txt"},
"extra/favicon.ico": {"path": "favicon.ico"},
"extra/CNAME": {"path": "CNAME"},
}

# #### URL settings ####
RELATIVE_URLS = True # for local development only
PATH_METADATA = "(?P<path_no_ext>.*)\..*"
ARTICLES_PATH = [
"articles",
]
ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = "{path_no_ext}.html"

# 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/'),
# )

# Social widget
# SOCIAL = (
# ("linkedin", "https://au.linkedin.com/in/mgibson1"),
# ("github", "https://github.com/"),
# )

DEFAULT_PAGINATION = 10

# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True


# #### Theme settings ####
THEME = "notmyidea"
# THEME = "themes/my-basic"
# THEME = "notmyidea"
THEME = "themes/my-basic"
# USER_LOGO_URL = SITEURL + "/images/ok_photo.JPG"
# GOOGLE_ANALYTICS = "UA-36248181-1"
# TAGLINE = "Code monkey who enjoys accumulating technical knowledge."
2 changes: 1 addition & 1 deletion publishconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# !!!!!


SITEURL = "http://matthew-gibson.com"
# SITEURL = "https://matthew-gibson.com"
RELATIVE_URLS = False

# FEED_ALL_ATOM = 'feeds/all.atom.xml'
Expand Down

0 comments on commit ea226a1

Please sign in to comment.