diff --git a/assets/hb/modules/blog/scss/post/_card.scss b/assets/hb/modules/blog/scss/post/_card.scss index fbc9f087..43c57351 100644 --- a/assets/hb/modules/blog/scss/post/_card.scss +++ b/assets/hb/modules/blog/scss/post/_card.scss @@ -17,3 +17,39 @@ text-transform: uppercase; width: 100%; } + +.hb-blog-post-card-wrapper { + .card-img-top { + border: 0 !important; + display: block; + height: 100%; + margin-top: 0 !important; + } + + .hb-blog-post-card-img { + @extend .rounded-0; + } + + @include media-breakpoint-down(sm) { + .card-img-top { + margin-bottom: .25rem; + } + } + + @include media-breakpoint-up(md) { + .card-img-top { + border-radius: 0 !important; + } + + .hb-blog-post-card-img { + height: 100%; + width: 180px; + } + } + + @include media-breakpoint-up(lg) { + .hb-blog-post-card-img { + width: 240px; + } + } +} diff --git a/hugo.toml b/hugo.toml index d3df9753..0495e25b 100644 --- a/hugo.toml +++ b/hugo.toml @@ -29,6 +29,7 @@ post_date_format = ':date_long' post_thumbnail = true post_thumbnail_placeholder = "" post_thumbnail_default = "images/thumbnail.png" +post_thumbnail_position = "top" list_cols_md = 2 list_cols_lg = 3 # won't work when sidebar was enabled. diff --git a/layouts/partials/hb/modules/blog/index.html b/layouts/partials/hb/modules/blog/index.html index 9ccdf9fa..59b72623 100644 --- a/layouts/partials/hb/modules/blog/index.html +++ b/layouts/partials/hb/modules/blog/index.html @@ -17,7 +17,8 @@ {{- if $hasPinned }}