Skip to content

Commit

Permalink
module updates
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyg committed Jan 5, 2017
1 parent 2c0e6a8 commit 3853c80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion byline.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{% if item.author %}<p class="byline" >By {{ item.author }}</p>{% endif %}
{% if item.author.first_name %}<p class="byline" >By {{ item.author.first_name }} {{ item.author.last_name }}</p>{% elsif item.author %}<p class="byline" >By {{ item.author }}</p>{% endif %}
2 changes: 1 addition & 1 deletion report.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="item__content">
{% include shared-includes/title.html %}
{% include shared-includes/byline.html %}
{{ item.excerpt | strip_html }}
{{ item.excerpt | strip_html | truncatewords: 30 }}
</div>
<div class="item__image">
<figure class="item__thumb item__thumb--report">
Expand Down
8 changes: 5 additions & 3 deletions thumb.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
<img
class="lazyload"
data-src="{{ site.imgix }}{{ item.image | remove: "/uploads" }}?w={{include.width | default: "400"}}&h={{include.height | default: "300"}}&fit=crop&crop=entropy&auto=compress"
{% else %}
src="{{ item.image}}"
{% endif %}
{% else %}
{% if item.meta.image != "" %}
src="{{ item.meta.image | remove: "wp-content" }}"
{% endif %}
{% endif %}
width="{{include.width | default: "400"}}"
height="{{include.height | default: "300"}}"
alt="{{ item.image-caption }}" />
Expand Down

0 comments on commit 3853c80

Please sign in to comment.