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-container
.article-header .article-header
- const has_cover = (page.cover !== undefined && page.cover !== null && page.cover != '') - const has_cover = (page.cover !== undefined && page.cover !== null && page.cover != '')
a( img.post-cover(src=has_cover ? page.cover : "/img/no_image.svg")
data-fancybox
href=has_cover ? page.cover : undefined
data-caption="Single image"
)
img.post-cover(src=has_cover ? page.cover : "/img/no_image.svg")
.article-info .article-info
span.article-title= page.title span.article-title= page.title

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

Loading…
Cancel
Save