Skip to content

Commit

Permalink
fix: cover和index_cover使用错误
Browse files Browse the repository at this point in the history
  • Loading branch information
zkz098 committed Dec 29, 2023
1 parent 16f25cb commit 185f0fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layout/_mixin/segment.pug
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mixin SMRender(item)
div(class="cover" style=`background: linear-gradient(to bottom right, ${random_color()}, ${random_color()});`)
else
div(class="cover")
!= _url(link1, '<img data-src="'+ _cover_index(item) +'" alt="article cover">', {itemprop: 'url', title: postText})
!= _url(link1, '<img data-src="'+ _cover(item) +'" alt="article cover">', {itemprop: 'url', title: postText})
div(class="info")
+PMRender(item)
h3
Expand Down
4 changes: 2 additions & 2 deletions layout/_partials/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include ../_mixin/breadcrumb.pug
include ../_mixin/sidebar.pug
include ../_mixin/widgets.pug

- var ignores = []
- ignores = []
if (theme.quicklink.ignores)
- ignores.push(theme.quicklink.ignores)

Expand Down Expand Up @@ -40,7 +40,7 @@ html(lang=page.language?page.language:config.language, style=theme.grayMode ? 'f
- var coverImage = theme.experiments.fixedCover || "https://7ed.net/bing/api"
img(src=coverImage)
else
- var covers = _cover(page, 6)
- var covers = _cover_index(page, 6)
if covers.length === 6
ul
each image in covers
Expand Down

0 comments on commit 185f0fc

Please sign in to comment.