diff options
Diffstat (limited to 'templates/includes')
-rw-r--r-- | templates/includes/map_entry_list_template.html | 2 | ||||
-rw-r--r-- | templates/includes/recent_entries.html | 15 | ||||
-rw-r--r-- | templates/includes/recent_entries_template.html | 7 |
3 files changed, 14 insertions, 10 deletions
diff --git a/templates/includes/map_entry_list_template.html b/templates/includes/map_entry_list_template.html index ed34d11..0705602 100644 --- a/templates/includes/map_entry_list_template.html +++ b/templates/includes/map_entry_list_template.html @@ -59,7 +59,7 @@ markerOptions = { clickable:true, draggable:false, icon:tinyIcon}; marker_{{entry.title|truncatewords:2|slugify_under}} = new GMarker(point_{{entry.title|truncatewords:2|slugify_under}}, markerOptions); map.addOverlay(marker_{{entry.title|truncatewords:2|slugify_under}}); - marker_{{entry.title|truncatewords:2|slugify_under}}.info_window_content = '<div class="infowin"><h4>{{entry.title}}<\/h4><span class="date blok">{{entry.pub_date|date:"F j, Y"}} ({% ifequal entry.location.state.country.name "United States" %}{{entry.location.name|smartypants|safe}}, {{entry.location.state.name}}){%else%}{{entry.location.name|smartypants|safe}}, {{entry.location.state.country.name}}){%endifequal%}<\/span><p><img src="{{entry.get_thumbnail_url}}" height="100" alt="{{ entry.title }}" style="float: left; border: #000 10px solid; margin-right: 8px; margin-bottom: 4px; height: 100px;" \/>{{entry.dek|escapejs}} <a href="{{entry.get_absolute_url}}">Read it »<\/a><\/p><\/div>' + marker_{{entry.title|truncatewords:2|slugify_under}}.info_window_content = '<div class="infowin"><h4>{{entry.title}}<\/h4><span class="date blok">{{entry.pub_date|date:"F j, Y"}} ({% if entry.location.state.country.name == "United States" %}{{entry.location.name|smartypants|safe}}, {{entry.location.state.name}}){%else%}{{entry.location.name|smartypants|safe}}, {{entry.location.state.country.name}}){%endif%}<\/span><p><img src="{{entry.get_thumbnail_url}}" height="100" alt="{{ entry.title }}" style="float: left; border: #000 10px solid; margin-right: 8px; margin-bottom: 4px; height: 100px;" \/>{{entry.dek|escapejs}} <a href="{{entry.get_absolute_url}}">Read it »<\/a><\/p><\/div>' marker_{{entry|truncatewords:2|slugify_under}}.bindInfoWindowHtml(marker_{{entry|truncatewords:2|slugify_under}}.info_window_content, {maxWidth:400}); GEvent.addListener(marker_{{entry.title|truncatewords:2|slugify_under}}, "click", function() { map.panTo(point_{{entry.title|truncatewords:2|slugify_under}}, 2); diff --git a/templates/includes/recent_entries.html b/templates/includes/recent_entries.html index 58b165b..4b5acba 100644 --- a/templates/includes/recent_entries.html +++ b/templates/includes/recent_entries.html @@ -2,32 +2,35 @@ <ul> <li class="col1"> <h3><a href="/2010/apr/24/death-valley/" title="(There'll Be) Peace in the Valley">(There’ll Be) Peace in the Valley</a></h3> - <img src="http://127.0.0.1:8000/images/post-thumbnail/2010/deathvalley.jpg" alt="(There'll Be) Peace in the Valley" class="post-image" /> <p> <span class="location">Death Valley, <a href="/writing/united-states/1/" title="travel writing from the United States">California</a></span> <time datetime="2010-04-24 10:45:59">04/24/10</time> + <img src="http://127.0.0.1:8000/images/post-thumbnail/2010/deathvalley.jpg" alt="(There'll Be) Peace in the Valley" class="post-image" /> </p> - <p class="intro">Sometimes you ignore the places close to home because, well, there's always next weekend. Which is why I never made it Death Valley in the twenty-five years I lived in California. It took being all the way across the country to get me out to Death Valley. Which might explain why I actually got up before dawn just to watch the sunrise at Zabriskie Point. <a class="permalink" href="/2010/apr/24/death-valley/" title="(There'll Be) Peace in the Valley">Read it »</a></p> + <p class="intro hyphenate">Sometimes you ignore the places close to home because, well, there's always next weekend. Which is why I never made it Death Valley in the twenty-five years I lived in California. It took being all the way across the country to get me out to Death Valley. Which might explain why I actually got up before dawn just to watch the sunrise at Zabriskie Point. </p> + <span class="button"><a class="permalink" href="/2010/apr/24/death-valley/" title="(There'll Be) Peace in the Valley">More »</a></span> </li> <li class="col2"> <h3><a href="/2010/mar/13/so-far-i-have-not-found-science/" title="So Far, I Have Not Found The Science">So Far, I Have Not Found The Science</a></h3> - <img src="http://127.0.0.1:8000/images/post-thumbs/2010/okeefenokee.jpg" alt="So Far, I Have Not Found The Science" class="post-image" /> <p> <span class="location">Okefenokee Swamp, <a href="/writing/united-states/1/" title="travel writing from the United States">Georgia</a></span> <time datetime="2010-03-13 11:50:48">03/13/10</time> + <img src="http://127.0.0.1:8000/images/post-thumbs/2010/okeefenokee.jpg" alt="So Far, I Have Not Found The Science" class="post-image" /> </p> - <p class="intro">A canoe trip through the Okefenokee Swamp down in the southern most corner of Georgia. Paddling the strange reddish and incredibly still waters. Begging alligators, aching muscles and the kindly folks of Stintson's Barbecue all getting their due. <a class="permalink" href="/2010/mar/13/so-far-i-have-not-found-science/" title="So Far, I Have Not Found The Science">Read it »</a></p> + <p class="intro hyphenate">A canoe trip through the Okefenokee Swamp down in the southern most corner of Georgia. Paddling the strange reddish and incredibly still waters. Begging alligators, aching muscles and the kindly folks of Stintson's Barbecue all getting their due.</p> + <span class="button"><a class="permalink" href="/2010/mar/13/so-far-i-have-not-found-science/" title="So Far, I Have Not Found The Science">More »</a></span> </li> <li class="col1"> <h3><a href="/2009/may/03/how-to-get-your-butt-and-travel-world/" title="How to Get Off Your Butt and Travel the World">How to Get Off Your Butt and Travel the World</a></h3> - <img src="http://127.0.0.1:8000/images/post-thumbs/2010/traveltheworld.jpg" alt="How to Get Off Your Butt and Travel the World" class="post-image" /> <p> <span class="location">Athens, <a href="/writing/united-states/1/" title="travel writing from the United States">Georgia</a></span> <time datetime="2009-05-03 18:39:16">05/03/09</time> + <img src="http://127.0.0.1:8000/images/post-thumbs/2010/traveltheworld.jpg" alt="How to Get Off Your Butt and Travel the World" class="post-image" /> </p> - <p class="intro">How do you make the leap from cubicle daydreams to life on to the road? You want to travel the world, but, like me, you have a million excuses stopping you. How do overcome the inertia that keeps you trapped in a life that isn't what you want it to be? Here's a few practical tips and how tos designed to motivate you to get off your butt and travel the world. <a class="permalink" href="/2009/may/03/how-to-get-your-butt-and-travel-world/" title="How to Get Off Your Butt and Travel the World">Read it »</a></p> + <p class="intro hyphenate">How do you make the leap from cubicle daydreams to life on to the road? You want to travel the world, but, like me, you have a million excuses stopping you. How do overcome the inertia that keeps you trapped in a life that isn't what you want it to be? Here's a few practical tips and how tos designed to motivate you to get off your butt and travel the world.</p> + <span class="button"><a class="permalink" href="/2009/may/03/how-to-get-your-butt-and-travel-world/" title="How to Get Off Your Butt and Travel the World">More »</a></span> </li> </ul>
\ No newline at end of file diff --git a/templates/includes/recent_entries_template.html b/templates/includes/recent_entries_template.html index 29ed3d8..847dc47 100644 --- a/templates/includes/recent_entries_template.html +++ b/templates/includes/recent_entries_template.html @@ -2,12 +2,13 @@ <ul>{% for object in object_list %} <li class="{% cycle 'col1' 'col2' %}"> <h3><a href="{{object.get_absolute_url}}" title="{%if object.title_keywords%}{{object.title_keywords}}{%else%}{{object.title}}{%endif%}">{{object.title|smartypants|widont|safe}}</a></h3> - {%if object.thumbnail%}<img src="{{object.get_thumbnail_url}}" alt="{{ object.title }}" class="post-image" />{%endif%} <p> - <span class="location">{% ifequal 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>{%endifequal%}</span> + <span class="location">{% 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%}</span> <time datetime="{{object.pub_date}}">{{object.pub_date|date:"m/d/y"}}</time> + {%if object.thumbnail%}<img src="{{object.get_thumbnail_url}}" alt="{{ object.title }}" class="post-image" />{%endif%} </p> - <p class="intro">{{object.dek|safe}} <a class="permalink" href="{{object.get_absolute_url}}" title="{{object.title}}">Read it »</a></p> + <p class="intro hyphenate">{{object.dek|safe}}</p> + <span class="button"><a class="permalink" href="{{object.get_absolute_url}}" title="{{object.title}}">More »</a></span> </li>{% endfor %} </ul>
\ No newline at end of file |