Skip to content

Commit

Permalink
posts list
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisben committed Dec 12, 2022
1 parent 2dbc141 commit c23e130
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 31 deletions.
2 changes: 1 addition & 1 deletion assets/sass/_theme/_configuration.sass
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ $program-share-font-size-md: $h5-size-md !default
$program-zindex-toc: $zindex-toc !default

// Layout posts list (ne concerne pas les blocks posts)
$posts-layout-list: false !default
$posts-layout-list: true !default

// MISC
Expand Down
59 changes: 29 additions & 30 deletions assets/sass/_theme/sections/posts.sass
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,40 @@
.posts
@include grid(1)
grid-gap: 0
> div
article
border-bottom: 1px solid $color-border
margin-bottom: $spacing3
padding-bottom: $spacing3
.post
display: flex
flex-direction: row
@include media-breakpoint-up(md)
@include grid
div:not(.media)
grid-column: 4/13
display: flex
flex-direction: row
@include media-breakpoint-up(md)
@include grid
div:not(.media)
grid-column: 4/13
@include media-breakpoint-down(md)
flex: 1
margin-left: $spacing0
p:not(.title)
@include media-breakpoint-down(md)
flex: 1
margin-left: $spacing0
p:not(.title)
@include media-breakpoint-down(md)
display: none
.media
background: none
margin: 0
@include media-breakpoint-down(md)
width: 33.33333%
@include media-breakpoint-up(md)
grid-column: 1/4
display: none
.media
background: none
margin: 0
@include media-breakpoint-down(md)
width: 33.33333%
@include media-breakpoint-up(md)
time
font-size: $h5-size
position: absolute
right: 0
top: 0
div:not(.media)
h1,
p,
a
max-width: col(6, 9)
grid-column: 1/4
@include media-breakpoint-up(md)
time
font-size: $h5-size
position: absolute
right: 0
top: 0
div:not(.media)
h1,
p,
a
max-width: col(6, 9)

@else
.posts
Expand Down
5 changes: 5 additions & 0 deletions layouts/pages/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@

{{ else }}
<!-- FIXME -->
{{/* {{- partial "blocks/templates/pages/grid.html" (dict
"pages" .Params.children
"show_images" true
"show_descriptions" true
) }} */}}
<section class="block block-pages block-pages--grid">
<div class="container">
<div class="block-content">
Expand Down

0 comments on commit c23e130

Please sign in to comment.