1
0
mirror of https://github.com/danbee/danbarber.me synced 2025-03-04 08:59:10 +00:00

Finish three column photo layout

This commit is contained in:
Daniel Barber 2019-07-10 20:57:11 -04:00
parent a657b20f7f
commit e6c47f3cb2
11 changed files with 46 additions and 7 deletions

View File

@ -0,0 +1,11 @@
.photos-container {
@include container;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 1rem;
}
.photo-thumb {
width: 100%;
}

View File

@ -0,0 +1,3 @@
.photos__heading {
font-size: 1.35rem;
}

View File

@ -2,10 +2,10 @@
position: relative;
width: 100%;
height: 0;
iframe {
position: absolute;
width: 100%;
height: 100%;
}
}
}

View File

@ -1,2 +1,2 @@
$max-width: 800px !default;
$max-width: 816px !default;
$pad-min: 8.5% !default;

View File

@ -42,6 +42,8 @@
@import "components/pagination";
@import "components/photo";
@import "components/video-container";
@import "components/photos-container";
@import "components/photos";
// 7. Utilities utilities and helper classes with ability to override
// anything which goes before in the triangle, eg. hide helper class

View File

@ -83,6 +83,16 @@ picture:
output: assets
markup: picture
presets:
photo-thumb:
ppi: [1, 2]
attr:
class: photo-thumb
itemprop: image
source_default:
width: 300
height: 300
full-width:
ppi: [1, 2]
attr:

View File

@ -9,6 +9,7 @@ categories:
- sunset
- usa
layout: post
image: "blog/liberty-sunset/DSCF3723.jpg"
---
<figure class="photo photo--wide">

View File

@ -10,6 +10,7 @@ categories:
- photos
- usa
- washington dc
image: "blog/eisenhower-executive-office-building/DSCF4369.jpg"
---
<figure class="photo photo--square">

View File

@ -10,6 +10,7 @@ categories:
- sculpture
- storm king
date: Tue, 29 Aug 2017 18:04:53 +0000
image: "blog/four-corners/IMG_6164.jpg"
---
<figure class="photo photo--wide">

View File

@ -10,6 +10,7 @@ tags:
- wrangler
- cowgirl
- horses
image: "blog/barrel-race/DSCF8015.jpg"
---
<figure class="photo photo--wide">

View File

@ -3,6 +3,7 @@ layout: default
pagination:
enabled: true
category: photos
per_page: 24
---
{% assign index = true %}
@ -10,13 +11,21 @@ pagination:
{% include header.html %}
<div id="content">
{% for post in paginator.posts %}
{% assign content = post.content %}
<header class="container photos__header">
<h1 class="photos__heading">Photos</h1>
</header>
<article class="article">
{% include index_article.html %}
<div class="photos-container">
{% for post in paginator.posts %}
<article class="photo-post">
{% if post.image %}
<a href="{{ post.url }}">
{% picture photo-thumb {{ post.image }} alt="" title="{{ post.title }}" %}
</a>
{% endif %}
</article>
{% endfor %}
</div>
<div class="container pagination">
{% if paginator.next_page %}