summaryrefslogtreecommitdiff
path: root/design/templates
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-09-30 01:33:20 +0000
committerluxagraf <sng@luxagraf.net>2014-09-30 01:33:20 +0000
commit544946397c831c42db47c892db4f7c6a40c93809 (patch)
tree5fd1c935215ada8929065084f1b9139bee9ef7c9 /design/templates
parent509110acad7fa7e1e5adcfc413e4be7b8ed62474 (diff)
few bug fixes for builder and templates
Diffstat (limited to 'design/templates')
-rw-r--r--design/templates/archives/homepage.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/design/templates/archives/homepage.html b/design/templates/archives/homepage.html
index 3e39e82..cbdfdcc 100644
--- a/design/templates/archives/homepage.html
+++ b/design/templates/archives/homepage.html
@@ -6,10 +6,16 @@
{% block primary %}<section class="banner">{% for object in object_list %}{% if forloop.counter == 1 %}
<article class="h-entry hentry {% cycle 'odd' 'even' %} {% cycle 'first' 'second' 'third' %}">
<div class="post--image">
- <a href="{{object.get_absolute_url}}" title="{{object.title}}"><img src="{{object.get_image_hero_url}}" alt="{{ object.title }}" class="u-photo post-image homepage--hero" /></a>
+ <a href="{{object.get_absolute_url}}" title="{{object.title}}">
+ <picture>
+ <!--<source media="(min-width: 45em)" srcset="large.jpg">-->
+ <source media="(max-width: 30em)" srcset="{{object.get_image_hero_url_sm}}">
+ <img src="{{object.get_image_hero_url}}" alt="{{ object.title }}" class="u-photo post-image homepage--hero" />
+ </picture>
+ </a>
</div>
<div class="hero--wrapper">
- <h1 class="p-name entry-title post--title main--header"><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>
+ <h1 class="p-name entry-title post--title main--header"><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}}</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 class="p-location h-adr adr post--location main--location">
@@ -58,4 +64,4 @@
</div>
{% endblock %}
-{% block js %}<script async src="/media/js/hyphenate.min.js" type="text/javascript"></script>{% endblock%}
+{% block js %}{% comment %} <script async src="/media/js/hyphenate.min.js" type="text/javascript"></script>{% endcomment%}{% endblock%}