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:
parent
a657b20f7f
commit
e6c47f3cb2
11
_assets/stylesheets/components/_photos-container.scss
Normal file
11
_assets/stylesheets/components/_photos-container.scss
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
.photos-container {
|
||||||
|
@include container;
|
||||||
|
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
grid-gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photo-thumb {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
3
_assets/stylesheets/components/_photos.scss
Normal file
3
_assets/stylesheets/components/_photos.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.photos__heading {
|
||||||
|
font-size: 1.35rem;
|
||||||
|
}
|
||||||
@ -2,10 +2,10 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 0;
|
height: 0;
|
||||||
|
|
||||||
iframe {
|
iframe {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
$max-width: 800px !default;
|
$max-width: 816px !default;
|
||||||
$pad-min: 8.5% !default;
|
$pad-min: 8.5% !default;
|
||||||
|
|||||||
@ -42,6 +42,8 @@
|
|||||||
@import "components/pagination";
|
@import "components/pagination";
|
||||||
@import "components/photo";
|
@import "components/photo";
|
||||||
@import "components/video-container";
|
@import "components/video-container";
|
||||||
|
@import "components/photos-container";
|
||||||
|
@import "components/photos";
|
||||||
|
|
||||||
// 7. Utilities – utilities and helper classes with ability to override
|
// 7. Utilities – utilities and helper classes with ability to override
|
||||||
// anything which goes before in the triangle, eg. hide helper class
|
// anything which goes before in the triangle, eg. hide helper class
|
||||||
|
|||||||
10
_config.yml
10
_config.yml
@ -83,6 +83,16 @@ picture:
|
|||||||
output: assets
|
output: assets
|
||||||
markup: picture
|
markup: picture
|
||||||
presets:
|
presets:
|
||||||
|
photo-thumb:
|
||||||
|
ppi: [1, 2]
|
||||||
|
attr:
|
||||||
|
class: photo-thumb
|
||||||
|
itemprop: image
|
||||||
|
source_default:
|
||||||
|
width: 300
|
||||||
|
height: 300
|
||||||
|
|
||||||
|
|
||||||
full-width:
|
full-width:
|
||||||
ppi: [1, 2]
|
ppi: [1, 2]
|
||||||
attr:
|
attr:
|
||||||
|
|||||||
@ -9,6 +9,7 @@ categories:
|
|||||||
- sunset
|
- sunset
|
||||||
- usa
|
- usa
|
||||||
layout: post
|
layout: post
|
||||||
|
image: "blog/liberty-sunset/DSCF3723.jpg"
|
||||||
---
|
---
|
||||||
|
|
||||||
<figure class="photo photo--wide">
|
<figure class="photo photo--wide">
|
||||||
|
|||||||
@ -10,6 +10,7 @@ categories:
|
|||||||
- photos
|
- photos
|
||||||
- usa
|
- usa
|
||||||
- washington dc
|
- washington dc
|
||||||
|
image: "blog/eisenhower-executive-office-building/DSCF4369.jpg"
|
||||||
---
|
---
|
||||||
|
|
||||||
<figure class="photo photo--square">
|
<figure class="photo photo--square">
|
||||||
|
|||||||
@ -10,6 +10,7 @@ categories:
|
|||||||
- sculpture
|
- sculpture
|
||||||
- storm king
|
- storm king
|
||||||
date: Tue, 29 Aug 2017 18:04:53 +0000
|
date: Tue, 29 Aug 2017 18:04:53 +0000
|
||||||
|
image: "blog/four-corners/IMG_6164.jpg"
|
||||||
---
|
---
|
||||||
|
|
||||||
<figure class="photo photo--wide">
|
<figure class="photo photo--wide">
|
||||||
|
|||||||
@ -10,6 +10,7 @@ tags:
|
|||||||
- wrangler
|
- wrangler
|
||||||
- cowgirl
|
- cowgirl
|
||||||
- horses
|
- horses
|
||||||
|
image: "blog/barrel-race/DSCF8015.jpg"
|
||||||
---
|
---
|
||||||
|
|
||||||
<figure class="photo photo--wide">
|
<figure class="photo photo--wide">
|
||||||
|
|||||||
@ -3,6 +3,7 @@ layout: default
|
|||||||
pagination:
|
pagination:
|
||||||
enabled: true
|
enabled: true
|
||||||
category: photos
|
category: photos
|
||||||
|
per_page: 24
|
||||||
---
|
---
|
||||||
|
|
||||||
{% assign index = true %}
|
{% assign index = true %}
|
||||||
@ -10,13 +11,21 @@ pagination:
|
|||||||
{% include header.html %}
|
{% include header.html %}
|
||||||
|
|
||||||
<div id="content">
|
<div id="content">
|
||||||
{% for post in paginator.posts %}
|
<header class="container photos__header">
|
||||||
{% assign content = post.content %}
|
<h1 class="photos__heading">Photos</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
<article class="article">
|
<div class="photos-container">
|
||||||
{% include index_article.html %}
|
{% 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>
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="container pagination">
|
<div class="container pagination">
|
||||||
{% if paginator.next_page %}
|
{% if paginator.next_page %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user