1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-29 23:48:11 +01:00

display recent photos under each photo post

This commit is contained in:
Matthias Kretschmann 2015-06-13 23:21:40 +02:00
parent 06956d3e00
commit 0061f61b5c
4 changed files with 55 additions and 11 deletions

View File

@ -98,3 +98,11 @@ picture:
itemprop: "image"
source_default:
width: "190"
photothumb:
ppi: [1, 2]
attr:
class: "related-image"
itemprop: "image"
source_default:
width: "190"
height: "190"

View File

@ -34,3 +34,20 @@
.post-title-link
display: block
//
// Related Photos
//
.related-photos
@extend .divider-top
margin-top: $line-height-computed*2
.photo-link
display: block
margin-bottom: 15%
border: 2px solid transparent
&:hover,
&:focus
border-color: $link-color-hover
border-radius: $border-radius-base

View File

@ -0,0 +1,17 @@
<aside class="related-photos">
<div class="row">
{% for post in site.categories['photos'] limit:6 %}
<article class="related-photo col2">
<a class="photo-link" href="{{ post.url }}">
{% picture photothumb {{ post.image }} %}
</a>
</article>
{% endfor %}
</div>
</aside>

View File

@ -22,6 +22,8 @@ layout: base
{% include comments.html %}
{% include relatedphotos.html %}
</article>
</section>