diff options
author | luxagraf <sng@luxagraf.net> | 2011-01-13 17:21:22 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2011-01-13 17:21:22 -0500 |
commit | 9b1aa6f9633a507908442821b3769cfd39cc2852 (patch) | |
tree | 005f538123efabae9c629d89504211b11502ace2 /templates/archives | |
parent | 1f8ecae633496fab2936137a5bf06a6472b95ef7 (diff) |
revamped templates, added ARIA roles, meta geo data
Diffstat (limited to 'templates/archives')
-rw-r--r-- | templates/archives/homepage.html | 2 | ||||
-rw-r--r-- | templates/archives/photos.html | 2 | ||||
-rw-r--r-- | templates/archives/projects.html | 34 | ||||
-rw-r--r-- | templates/archives/writing.html | 8 |
4 files changed, 23 insertions, 23 deletions
diff --git a/templates/archives/homepage.html b/templates/archives/homepage.html index 291433c..898ca01 100644 --- a/templates/archives/homepage.html +++ b/templates/archives/homepage.html @@ -8,7 +8,7 @@ {%block bodyid%}id="home"{%endblock%} -{% block primary %}<section id="featured"> +{% block primary %}<section id="featured" class="archive"> <article id="featured-intro"> <h1><a href="{{featured.get_absolute_url}}" title="{%if featured.title_keywords%}{{featured.title_keywords}}{%else%}{{featured.title}}{%endif%}">{{featured.title|smartypants|widont|safe}}</a></h1> <p class="dateline"> diff --git a/templates/archives/photos.html b/templates/archives/photos.html index eeb6451..e8a881d 100644 --- a/templates/archives/photos.html +++ b/templates/archives/photos.html @@ -10,7 +10,7 @@ {% 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> + <nav id="page-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> diff --git a/templates/archives/projects.html b/templates/archives/projects.html index b253ad1..3b2dd9a 100644 --- a/templates/archives/projects.html +++ b/templates/archives/projects.html @@ -7,28 +7,28 @@ {% block primary %} <article> - <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> - <li>Projects</li> - </ul> + <nav id="page-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> + <li>Projects</li> + </ul> + </nav> <h1 class="hide">Projects</h1> <div class="top"><p class="col">These are a few of the things that I use to inspire myself to do more. The truth is, just about <a href="http://www.youtube.com/watch?v=8r1CZTLk-Gk" title="Louis CK talking about how everything is amazing">everything is amazing</a> when viewed from the proper perspective. </p> <p class="col two">The projects on luxagraf are more or less goals I've created in effort to get my body in motion, because the difference between the mundane and the amazing is often simply motion. To move is to do, and to do is to live.</p></div> - <div class="break"></div> - {%for project in object_list %} - <ul class="project-tease"> - <li> - <div class="tease"> - <h3><a href="{{project.get_absolute_url}}">{{project.title|safe}}{{project.subtitle|safe}}</a></h3> - - <div class="lede hyphenate">{{project.lede|smartypants|safe}}</div> - <span class="button"><a href="{{project.get_absolute_url}}">More »</a></span> + + + <section id="projects-archive" class="archive"> {%for object in object_list %} + <article> + <h1><a href="{{object.get_absolute_url}}" title="{{object.title}}">{{object.title|safe}} {{object.subtitle|safe}}</a></h1> + <div class="img"> + <a href="{{object.get_absolute_url}}" title="{{object.title}}"><img src="{{object.image.url}}" alt="{{ object.title }}" class="post-image" /></a> </div> - <div class="img"><img src="{{project.image.url}}" /></div> - </li> - </ul> - {% endfor %} + <div class="hyphenate">{{object.lede|smartypants|safe}}</div> + <span class="button"><a href="{{project.get_absolute_url}}">More »</a></span> + </article> {% endfor %} + </section> </article> {% endblock %} diff --git a/templates/archives/writing.html b/templates/archives/writing.html index ce20dc6..f950b8b 100644 --- a/templates/archives/writing.html +++ b/templates/archives/writing.html @@ -18,18 +18,18 @@ </ul> </nav> </section> - <section id="writing-archive"> {% autopaginate object_list 10 %} {% for object in object_list %} + <section id="writing-archive" class="archive"> {% autopaginate object_list 10 %} {% for object in object_list %} <article> <h1><a href="{{object.get_absolute_url}}" title="{%if object.title_keywords%}{{object.title_keywords}}{%else%}{{object.title}}{%endif%}">{{object.title|smartypants|widont|safe}}</a></h1> + <div class="img"> + <a href="{{object.get_absolute_url}}" title="{{object.title}}"><img src="{{object.get_image_url}}" alt="{{ object.title }}" class="post-image" /></a> + </div> <p class="dateline"> <span class="location" itemprop="geo" itemscope itemtype="http://data-vocabulary.org/​Geo">{% if object.location.state.country.name == "United States" %}{{object.location.name|smartypants|safe}}, <a href="/writing/united-states/1/" title="travel writing from the United States">{{object.location.state.name}}</a>{%else%}{{object.location.name|smartypants|safe}}, <a href="/writing/{{object.location.state.country.slug}}/1/" title="travel writing from {{object.location.state.country.name}}">{{object.location.state.country.name}}</a>{%endif%} <meta itemprop="latitude" content="{{object.latitude}}" /> <meta itemprop="longitude" content="{{object.longitude}}" /></span> <time datetime="{{object.pub_date|date:'c'}}">{{object.pub_date|date:"m/d/y"}}</time> </p> - <div class="img"> - <a href="{{object.get_absolute_url}}" title="{{object.title}}"><img src="{{object.get_image_url}}" alt="{{ object.title }}" class="post-image" /></a> - </div> <p class="hyphenate">{{object.dek|safe}}</p> </article> {% endfor %} </section> |