From b503b5e0ed95a32303e17a432438922680b19ff9 Mon Sep 17 00:00:00 2001 From: Jason Novinger Date: Sun, 12 Oct 2014 11:54:53 -0500 Subject: [PATCH 4/6] Make manage.py a bit easier to use. --- manage.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 manage.py diff --git a/manage.py b/manage.py old mode 100644 new mode 100755 From 9bfdc3a6a68e799c8acd1d656790f31bdc8c900c Mon Sep 17 00:00:00 2001 From: Jason Novinger Date: Sun, 12 Oct 2014 11:55:58 -0500 Subject: [PATCH 5/6] Fix up site title. --- atxpy_home/views.py | 10 ++++++++-- templates/site_base.html | 18 +++++++++++------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/atxpy_home/views.py b/atxpy_home/views.py index d70e47e..2a00bb5 100644 --- a/atxpy_home/views.py +++ b/atxpy_home/views.py @@ -12,11 +12,17 @@ def posts(): PostsMixin = context_mixin_factory(callback=posts) CompiledStaticMixin = context_mixin_factory({ - "USE_COMPILED_STATIC": settings.USE_COMPILED_STATIC, + "USE_COMPILED_STATIC": settings.USE_COMPILED_STATIC, +}) +SettingsContextMixin = context_mixin_factory({ + 'SITE_NAME': settings.SITE_NAME, }) -class IndexView(PostsMixin, CompiledStaticMixin, DetailView): +class IndexView(PostsMixin, + CompiledStaticMixin, + SettingsContextMixin, + DetailView): model = Hero queryset = Hero.objects.all() template_name = "index.html" diff --git a/templates/site_base.html b/templates/site_base.html index 31faf20..81dbf7e 100644 --- a/templates/site_base.html +++ b/templates/site_base.html @@ -1,12 +1,16 @@ {% extends "theme_base.html" %} {% load staticfiles %} +{% block head_title_base %} + {{ SITE_NAME }} | {{ object.title }} +{% endblock head_title_base %} + {% block style_base %} {% if USE_COMPILED_STATIC %} {% else %} - + {% endif %} - {% block extra_style %}{% endblock %} -{% endblock %} - -{% block script_base %} + {% block extra_style %}{% endblock %} +{% endblock %} + +{% block script_base %} {% if not USE_COMPILED_STATIC %} {% endif %} - {{ block.super }} -{% endblock %} + {{ block.super }} +{% endblock %} {% block body_class %}no-mobile-padding{% endblock %} From 5805eee59014bd4fef7b1b32a0ef3adf958e25e2 Mon Sep 17 00:00:00 2001 From: Jason Novinger Date: Sun, 12 Oct 2014 12:25:57 -0500 Subject: [PATCH 6/6] Replace broken twitter search with standard twitter timeline embed. - Twitter deprecated and removed its original tweet search endpoint (http://search.twitter.com/search.json?q=awpug). So, swapped out the twitter_search.js implementation for the standard timeline embed for the time being. --- templates/index.html | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/templates/index.html b/templates/index.html index 0d44fa9..324f96a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -90,7 +90,12 @@

{{ post.title }}

Tweets