diff options
author | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-09-20 15:33:37 +0000 |
---|---|---|
committer | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-09-20 15:33:37 +0000 |
commit | bb81806bb58326f0dadfddc38705f0760c7c8d8f (patch) | |
tree | 177bef5ce2ffec926ff3067bd959b10db77261c7 /templates/archives/photos.html | |
parent | ad23af9549c4bc23ab345966d977e1f5d69ac03d (diff) |
improved html structure and tweaked stylesheet accordingly
Diffstat (limited to 'templates/archives/photos.html')
-rw-r--r-- | templates/archives/photos.html | 44 |
1 files changed, 19 insertions, 25 deletions
diff --git a/templates/archives/photos.html b/templates/archives/photos.html index 1eacf3c..eeb6451 100644 --- a/templates/archives/photos.html +++ b/templates/archives/photos.html @@ -8,33 +8,27 @@ {%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> - +{% block primary %}<section id="page-header"> + <h1 class="hide">{% if region %}Photographs from {{region.name|title|smartypants|safe}}{%else%}Photographs from Around the World {%endif%}</h1> + <nav> <ul id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> →</li> {% if region %}{%if region.name == 'United States'%} <li><a href="/photos/" title="See all Photos" itemprop="url"><span itemprop="title">Photos</span></a> →</li> - <li>the United States</li>{%else%}<li><a href="/photos/" title="See all Photos" itemprop="url"><span itemprop="title">Photos</span></a> →</li> <li>{{region.name|title|smartypants|safe}}{%endif%}{%else%}Photos </li>{%endif%} + <li>the United States</li>{%else%}<li><a href="/photos/" title="See all Photos" itemprop="url"><span itemprop="title">Photos</span></a> →</li> <li>{{region.name|title|smartypants|safe}}{%endif%}{%else%}<li>Photos </li>{%endif%} </ul> - - <ul id="photo-galleries">{% autopaginate object_list 18 %} {% for object in object_list %} - <li> - <div class="figure"> - <a href="{{object.get_absolute_url}}"><img src="{{object.get_main_image}}" alt="{{ object.set_title }}"/></a> - <span class="legend"> - <h3>{{object.set_title}}</h3> - <p>{{object.set_desc|truncatewords:30|smartypants|safe}}</p> - </span> - </div> - </li>{% endfor %} - </ul> - - - - <section id="pagination"> - <ul>{% paginate %} - </ul> - </section> - </article> + </nav> + </section> + <ul id="photo-galleries">{% autopaginate object_list 18 %} {% for object in object_list %} + <li> + <div class="figure"> + <a href="{{object.get_absolute_url}}"><img src="{{object.get_main_image}}" alt="{{ object.set_title }}"/></a> + <div class="legend"> + <h3>{{object.set_title}}</h3> + <p>{{object.set_desc|truncatewords:30|smartypants|safe}}</p> + </div> + </div> + </li>{% endfor %} + </ul> + <nav id="pagination">{% paginate %} + </nav> {% endblock %}
\ No newline at end of file |