summaryrefslogtreecommitdiff
path: root/templates/archives/photos.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/archives/photos.html')
-rw-r--r--templates/archives/photos.html76
1 files changed, 18 insertions, 58 deletions
diff --git a/templates/archives/photos.html b/templates/archives/photos.html
index d1db79c..f44265d 100644
--- a/templates/archives/photos.html
+++ b/templates/archives/photos.html
@@ -1,5 +1,4 @@
{% extends 'base.html' %}
-{% load chunks %}
{% load typogrify %}
{% load pagination_tags %}
@@ -7,61 +6,22 @@
{% block metadescription %}Photo Archive, Luxagraf{% endblock %}
-{%block bodyid%}id="writing-archive"{%endblock%}
-
-{% block title %}Photos from {% endblock %}
-
-{% block date %}{% endblock %}
-
-{% block primaryoverride %}<h2>{% if region %}Photos from {{region.name|title|smartypants|safe}}{%else%}Photos {%endif%}</h2>{% endblock %}
-{% block extrabody %}
-<div class="photo-archives">
- <ul>
- {% autopaginate object_list 20 %}
- {% for object in object_list %}
- <li>
- <dl>
- <dt>
- <span class="post-image"><a href="{%comment%}{{object.get_absolute_url}}{%endcomment%}http://www.flickr.com/photos/luxagraf/sets/{{object.set_id}}/show/"><img src="{{object.get_main_image}}" alt="{{ object.set_title }}"/></a></span>
- </dt>
- <dd>
- <span class="date">{{object.set_title}} {%comment%}{% 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%}{%endcomment%}</span>
- {{object.set_desc|truncatewords:30|smartypants|safe}}
- </dd>
- </dl>
- </li>
- {% endfor %}
- </ul>
-
- <div class="pagination-wrapper">{% paginate %}</div>
-</div>
-
-{% endblock %}
-
-
-
-{% block sidebar %}
-<div id="sidebar">
- <div class="blok">
- <h4 class="first">Regions</h4>
- {% include 'includes/regions_sidebar.html' %}
- </div>
- <div class="blok">
- <h4>Countries</h4>
- {% include 'includes/country_sidebar.html' %}
-
- </div>
-
- <div class="blok">
- <h4>About Luxagraf</h4>
- {% chunk "about_sidebar" %}
-
- </div>
-
- <div class="blok">
- <h4>Follow Along</h4>
- {% chunk "follow_sidebar" %}
- </div>
-</div><!-- sidebar -->
-
+{%block bodyid%}id="photo-archive"{%endblock%}
+
+{% block primary %}
+ <article>
+ <h1>{% if region %}Photographs from {{region.name|title|smartypants|safe}}{%else%}Photographs from Around the World {%endif%}</h1>
+ <ul id="photo-galleries">{% autopaginate object_list 18 %} {% for object in object_list %}
+ <li>
+ <a href="{%comment%}{{object.get_absolute_url}}{%endcomment%}http://www.flickr.com/photos/luxagraf/sets/{{object.set_id}}/show/"><img src="{{object.get_main_image}}" alt="{{ object.set_title }}"/></a>
+ <h3>{{object.set_title}}</h3>
+ <p>{{object.set_desc|truncatewords:30|smartypants|safe}}</p>
+ </li>{% endfor %}
+ </ul>
+
+ <section id="pagination">
+ <ul>{% paginate %}
+ </ul>
+ </section>
+ </article>
{% endblock %} \ No newline at end of file