From 15e9828313c1e8ebe8530ba996aa3ad4064b2804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E4=B8=80=E5=88=80=E6=96=A9=E5=93=92?= Date: Mon, 28 Nov 2022 11:11:33 +0800 Subject: [PATCH] Fix code typo (#190) * Update about.styl * Update article_footer.ejs --- layout/_partial/main/article/article_footer.ejs | 4 ++-- source/css/_layout/tag-plugins/about.styl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layout/_partial/main/article/article_footer.ejs b/layout/_partial/main/article/article_footer.ejs index b049cc9..bad76b5 100644 --- a/layout/_partial/main/article/article_footer.ejs +++ b/layout/_partial/main/article/article_footer.ejs @@ -70,9 +70,9 @@ function layoutDiv() { } else if (item == 'weibo') { el += ' href="https://service.weibo.com/share/share.php?url=' + page.permalink; el += '&title=' + (page.seo_title || (page.title + ' - ' + config.title)); - if (page.latyout == 'post' && page.cover) { + if (page.layout == 'post' && page.cover) { el += '&pics=' + page.cover; - } else if (page.latyout == 'wiki' && page.logo && page.logo.src) { + } else if (page.layout == 'wiki' && page.logo && page.logo.src) { el += '&pics=' + page.logo.src; } el += '&summary=' + truncate(page.description || strip_html(page.excerpt || page.content), {length: 120}); diff --git a/source/css/_layout/tag-plugins/about.styl b/source/css/_layout/tag-plugins/about.styl index 0af7111..6e9e7c5 100644 --- a/source/css/_layout/tag-plugins/about.styl +++ b/source/css/_layout/tag-plugins/about.styl @@ -17,7 +17,7 @@ width: 1rem height: 1rem .about-header - display flex + display: flex justify-content: center flex-wrap: wrap margin: 1.5rem 0