Skip to content

Commit d29391d

Browse files
committed
Fix some bugs
1 parent 9933747 commit d29391d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

layout/includes/article.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ article#article.article(itemscope itemtype="https://schema.org/BlogPosting")
5151

5252
include sharer
5353

54-
if theme.liveRe.uid
54+
if theme.liveRe && theme.liveRe.uid
5555
#lv-container(data-id="city", data-uid="#{theme.liveRe.uid}")
5656
script.
5757
(function(d, s) {

layout/includes/post-list.pug

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ section.post-list
4343
.post-list__item__col-1
4444
a.post-list__item__link(href=url_for(post.path))
4545
- var banner = bannerOf(post) || theme.default.url;
46-
.post-list__item__link__background(style="background-image: url('#{ banner }')")
46+
.post-list__item__link__background(style={
47+
'background-image': `url('${banner}')`
48+
})
4749
.post-list__item__col-2
4850
.post-list__item__meta
4951
if post.categories && post.categories.length

layout/post.pug

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ block content
1212
.related-posts__item__wrapper
1313
a.related-posts__item(href=url_for(post.path))
1414
- var banner = bannerOf(post) || theme.default.url;
15-
.related-posts__item__background(style="background-image: url('#{ banner }')")
15+
.related-posts__item__background(style={
16+
'background-image': `url('${banner}')`
17+
})
1618
.related-posts__item__overlay
1719
span.related-posts__item__title= post.title || 'Untitled'

0 commit comments

Comments
 (0)