From: M. Taylor Saotome-Westlake Date: Sat, 15 Sep 2018 23:41:13 +0000 (-0700) Subject: WIP local fonts X-Git-Url: http://unremediatedgender.space/source?p=Ultimately_Untrue_Thought.git;a=commitdiff_plain;h=refs%2Fheads%2Flocal_font_experiment WIP local fonts It's nontrivial because the HTML only retreives a stylesheet which retrieves the actual fonts; not hard to solve, but I don't care that much right now --- diff --git a/pelicanconf.py b/pelicanconf.py index 7952a3f..a9875e1 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -71,3 +71,5 @@ TAG_CLOUD_SORTING = "alphabetically" # Uncomment following line if you want document-relative URLs when developing RELATIVE_URLS = True + +IS_DEVELOPMENT = True diff --git a/plugins/tag_cloud.py b/plugins/tag_cloud.py index 775977e..bdd9358 100644 --- a/plugins/tag_cloud.py +++ b/plugins/tag_cloud.py @@ -23,6 +23,7 @@ logger = logging.getLogger(__name__) def set_default_settings(settings): + print(settings) settings.setdefault('TAG_CLOUD_STEPS', 4) settings.setdefault('TAG_CLOUD_MAX_ITEMS', 100) settings.setdefault('TAG_CLOUD_SORTING', 'random') diff --git a/publishconf.py b/publishconf.py index 738f1f3..fd59a1a 100644 --- a/publishconf.py +++ b/publishconf.py @@ -21,3 +21,5 @@ CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml' DELETE_OUTPUT_DIRECTORY = True GOOGLE_ANALYTICS = "UA-100822263-1" + +IS_DEVELOPMENT = False diff --git a/theme/templates/base.html b/theme/templates/base.html index 36ca164..472eaf1 100644 --- a/theme/templates/base.html +++ b/theme/templates/base.html @@ -8,8 +8,13 @@ {% block extra_meta %} {% endblock %} - - + {% if IS_DEVELOPMENT %} + + {# TODO: local fonts?! #} + {% else %} + + + {% endif %} {% block scripts %} {% endblock %}