From d101cfb7b572352e53c35ae1a05e1635ade72a4c Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 20 Dec 2023 15:01:46 +0800 Subject: [PATCH] [opt] references --- .../_partial/main/article/article_footer.ejs | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/layout/_partial/main/article/article_footer.ejs b/layout/_partial/main/article/article_footer.ejs index 0b19ea7..4ace8a2 100644 --- a/layout/_partial/main/article/article_footer.ejs +++ b/layout/_partial/main/article/article_footer.ejs @@ -18,18 +18,13 @@ function layoutDiv() { if (page.references?.length > 0) { function refList() { var el = ''; - page.references.forEach((item, i) => { - el += '
  • '; - el += ' + ${markdown(ref)} +
  • + ` + } return el; } el += `