From eb3f49331e2ed0c1373ac78ce6935f2370b9e968 Mon Sep 17 00:00:00 2001 From: "luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f" Date: Sat, 12 Jun 2010 18:25:46 +0000 Subject: added hyphenation support and changed to justified text for homepage and writing archives. Also eliminated ifequal and ifnotequal template tags --- templates/details/entry.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'templates/details/entry.html') diff --git a/templates/details/entry.html b/templates/details/entry.html index 9bd8535..db378a7 100644 --- a/templates/details/entry.html +++ b/templates/details/entry.html @@ -1,16 +1,16 @@ {% extends 'base.html' %} {% load typogrify %} -{% block pagetitle %}{{object.title|title|smartypants|safe}} | Luxagraf, a travelogue | {% ifequal object.location.state.country.name "United States" %}{{object.location.name|smartypants|safe}}, {{object.location.state.name}}{%else%}{{object.location.name|smartypants|safe}}, {{object.location.state.country.name}}{%endifequal%}){% endblock %} +{% block pagetitle %}{{object.title|title|smartypants|safe}} | Luxagraf, a travelogue | {% if object.location.state.country.name == "United States" %}{{object.location.name|smartypants|safe}}, {{object.location.state.name}}{%else%}{{object.location.name|smartypants|safe}}, {{object.location.state.country.name}}{%endif%}){% endblock %} -{%block stylesheet%}{%ifequal object.template_name 2%}{%endifequal%} - {%ifequal object.template_name 3%}{%endif%} + {%if object.template_name == 3%}{%endifequal%}{%endblock%} + media="screen">{%endif%}{%endblock%} {% block metadescription %}{{object.meta_description|striptags|safe}}{% endblock %} @@ -18,11 +18,11 @@ - - + + {%endblock%} -{%block bodyid%}id="writing-detail" class="{%ifequal object.template_name 0%}single"{%endifequal%}{%ifequal object.template_name 2%}single"{%endifequal%}{%ifequal object.template_name 1%}double"{%endifequal%}{%ifequal object.template_name 3%}double"{%endifequal%}{%endblock%} +{%block bodyid%}id="writing-detail" class="{%if object.template_name == 0 %}single"{%endif%}{%if object.template_name == 2%}single"{%endif%}{%if object.template_name == 1 %}double"{%endif%}{%if object.template_name == 3 %}double"{%endif%}{%endblock%} {% block primary %} @@ -30,21 +30,21 @@

{{object.title|smartypants|widont|safe}}

-
+
{{object.body_html|smartypants|widont|safe}}
- {%ifequal object.template_name 1%}
{%endifequal%} - {%ifequal object.template_name 3%}
{%endifequal%} + {%if object.template_name == 1 %}
{%endif%} + {%if object.template_name == 3 %}
{%endif%}

About {{object.title|smartypants|safe}}

-

Posted , from {{object.location.name|smartypants|safe}}, {%ifequal object.location.state.country.name 'United States'%}{{object.location.state.name|smartypants|safe}}{% else %}{{object.location.state.country.name}}{%endifequal%}. +

Posted , from {{object.location.name|smartypants|safe}}, {%if object.location.state.country.name == 'United States'%}{{object.location.state.name|smartypants|safe}}{% else %}{{object.location.state.country.name}}{%endif%}. Follow along on Twitter or by subscribing to the RSS Feed. For more about me, see the about page. To get in touch please use the contact form or leave a comment below.