lensfrex 1 year ago
parent 20d2df3858
commit c6c6ea46dd
Signed by: lensfrex
GPG Key ID: 947ADABD8533C476
  1. 7
      layout/post.pug
  2. 5
      source/css/_partials/post_page/post_page.styl

@ -9,12 +9,7 @@ block content
.article-container
.article-header
- const has_cover = (page.cover !== undefined && page.cover !== null && page.cover != '')
a(
data-fancybox
href=has_cover ? page.cover : undefined
data-caption="Single image"
)
img.post-cover(src=has_cover ? page.cover : "/img/no_image.svg")
img.post-cover(src=has_cover ? page.cover : "/img/no_image.svg")
.article-info
span.article-title= page.title

@ -30,12 +30,9 @@
$post-width = 384px
$post-heigth = 216px
img.post-cover
width: $post-width
min-width: $post-width
max-width: $post-width
width: 32%
object-fit: cover
transition: all 0.2s linear 0s
/* filter: drop-shadow(1px 1px 2px #4a473e); */
border-color: #4a473e91;
border-style: solid;
border-width: 2px;

Loading…
Cancel
Save