From 6a2c3b8c264a362649e36cf4487a2fa1dce3e118 Mon Sep 17 00:00:00 2001 From: shaojiemike <943648187@qq.com> Date: Sun, 21 Jan 2024 23:43:02 +0800 Subject: [PATCH] feat: support local img in news section --- .../news/award/231227-highContribution.md | 2 +- layouts/news/list.html | 48 +++++++++++++++++-- 2 files changed, 45 insertions(+), 5 deletions(-) diff --git a/exampleSite/content/news/award/231227-highContribution.md b/exampleSite/content/news/award/231227-highContribution.md index 5f84e2b..a59a282 100644 --- a/exampleSite/content/news/award/231227-highContribution.md +++ b/exampleSite/content/news/award/231227-highContribution.md @@ -2,7 +2,7 @@ title: "Professor An Hong was elected as a high-contributing scholar in Chinese computer field in 2023." types: "AWARD" date: 2023-12-27 -img_url: "/images/news/anhong.png" +img_url: "./images/news/anhong.png" selectedInFirstPage: # abstract: "校友会2023年中国高贡献学者榜单发布,其中计算机领域共有168人当选, 安虹教授当选" Journalist: diff --git a/layouts/news/list.html b/layouts/news/list.html index 2b299e3..4197c6e 100644 --- a/layouts/news/list.html +++ b/layouts/news/list.html @@ -16,7 +16,17 @@