diff options
author | luxagraf <sng@luxagraf.net> | 2015-01-25 18:48:19 +0000 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-01-25 18:48:19 +0000 |
commit | 07dc722b5b244a21fbb8aa4e0bdafb53e1598330 (patch) | |
tree | be313cae0d0d1ecc049f0c9610de8a1e40a0cdba /design | |
parent | 6eb3a9c2ab19b44d330c583d35cde85e965f899d (diff) |
fixed homepage builder
Diffstat (limited to 'design')
-rw-r--r-- | design/templates/admin/buttons.html | 1 | ||||
-rw-r--r-- | design/templates/archives/homepage.html | 21 | ||||
-rw-r--r-- | design/templates/base.html | 6 |
3 files changed, 22 insertions, 6 deletions
diff --git a/design/templates/admin/buttons.html b/design/templates/admin/buttons.html index f800d1e..5046695 100644 --- a/design/templates/admin/buttons.html +++ b/design/templates/admin/buttons.html @@ -42,6 +42,7 @@ <ul class="grp-listing-small cust"> <li class="item"><a href="/admin/build/build?id=builddetails">Build Writing Details</a></li> <li class="item"><a href="/admin/build/build?id=writingarchives">Build Writing Archives</a></li> + <li class="item"><a href="/admin/build/build?id=homepage">Build Homepage</a></li> <li class="item"><a href="/admin/build/build?id=buildrss">Build RSS</a></li> <li class="item"><a href="/admin/build/build?id=photo_galleries">Build Photo Galleries</a></li> <li class="item"><a href="/admin/build/build?id=projects">Build Project Pages</a></li> diff --git a/design/templates/archives/homepage.html b/design/templates/archives/homepage.html index 12968aa..7ecd4de 100644 --- a/design/templates/archives/homepage.html +++ b/design/templates/archives/homepage.html @@ -57,9 +57,24 @@ </article> {% endfor %} <p><a href="/" class="homepage--next">Read More</a></p> </section> - <section class="homepage--bright"> - <h1 class="homepage--arc-header">Join the Mailing List</h1> - {% include 'mailing_list.html' %} + <section class="homepage--archives homepage--bright archive"> + <h1 class="homepage--arc-header">Most Recent</h1> + {% for object in recent %} + <article class="h-entry hentry"> + <div class="post--image"> + <a href="{{object.get_absolute_url}}" title="{{object.title}}"><img src="{{object.get_image_url}}" alt="{{ object.title }}" class="u-photo post-image" /></a> + </div> + <h1 class="p-name entry-title post--title"><a href="{{object.get_absolute_url}}" class="u-url" title="{%if object.title_keywords%}{{object.title_keywords}}{%else%}{{object.title}}{%endif%}">{{object.title|safe|smartypants|widont}}</a></h1> + <p class="p-author author hide">Scott Gilbertson</p> + <time class="dt-published published dt-updated post--date" datetime="{{object.pub_date|date:'c'}}">{{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time> + <p> + <span class="p-location h-adr adr post--location"> + {% if object.country.name == "United States" %}<span class="p-locality locality" itemprop="geo" itemscope itemtype="http://data-vocabulary.org/Geo">{{object.location.name|smartypants|safe}}</span>, <a class="p-region region" href="/jrnl/united-states/" title="travel writing from the United States">{{object.state.name}}</a>, <span class="p-country-name">U.S.</span>{%else%}<span class="p-region">{{object.location.name|smartypants|safe}}</span>, <a class="p-country-name country-name" href="/jrnl/{{object.country.slug}}/" title="travel writing from {{object.country.name}}">{{object.country.name}}</a>{%endif%} + <data itemprop="latitude" class="p-latitude" value="{{object.latitude}}"></data> + <data itemprop="longitude" class="p-longitude" value="{{object.longitude}}"></data> + </span> – + </p> + </article> {% endfor %} </section> </div> {% endblock %} diff --git a/design/templates/base.html b/design/templates/base.html index bc2ba42..4fba739 100644 --- a/design/templates/base.html +++ b/design/templates/base.html @@ -34,11 +34,11 @@ <nav role="navigation" class="bl"> <ul> <li id="stories"><a href="/jrnl/" title="What we've been up to lately">Journal</a></li> - <li id="adventura"><a href="/adventures/" title="Our past and current adventures">Adventures</a></li> - <li id="field-notes"><a href="/field-notes/" title="Rough drafts and sketches">Field Notes</a></li> + <li id="adventura"><a href="/adventures" title="Our past and current adventures">Adventures</a></li> + <!--<li id="field-notes"><a href="/field-notes/" title="Rough drafts and sketches">Field Notes</a></li>--> <li id="photos"><a href="/photos/" title="Photos from travels around the world">Photos</a></li> <li id="maps"><a href="/map" title="Maps and miscellanea">Map</a></li> - <!--<li id="projects" ><a href="/projects/" title="Luxagraf: Projects">Projects</a></li>--> + <li id="projects" ><a href="/projects/" title="Luxagraf: Projects">Projects</a></li> <li id="etc" class="last"><a href="/about" title="About Luxagraf">About</a></li> </ul> </nav> |