From 986ac4f73466c749bfc4be61613dd30e87357735 Mon Sep 17 00:00:00 2001 From: Edi Wang Date: Wed, 27 Sep 2023 16:37:52 +0800 Subject: [PATCH] apply DisplayTimeForPubDate --- src/Moonglade.Web/Pages/Post.cshtml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Moonglade.Web/Pages/Post.cshtml b/src/Moonglade.Web/Pages/Post.cshtml index e4ea5a613..2988ec00e 100644 --- a/src/Moonglade.Web/Pages/Post.cshtml +++ b/src/Moonglade.Web/Pages/Post.cshtml @@ -110,7 +110,7 @@ } - var pid = document.querySelector('article').dataset.postid; + var pid = document.querySelector('article').dataset.postid; window.fitImageToDevicePixelRatio = @BlogConfig.ImageSettings.FitImageToDevicePixelRatio.ToString().ToLower(); @@ -154,7 +154,16 @@ - + @if (BlogConfig.ContentSettings.DisplayTimeForPubDate) + { + + } + else + { + + }