diff --git a/blog-web/src/main/resources/static/css/zhyd.core.css b/blog-web/src/main/resources/static/css/zhyd.core.css index 27cd23ab605ae37ba5047f1972a86c1c9d61dce6..741da2d2032241fd335929abd94f24b8f0b95a01 100644 --- a/blog-web/src/main/resources/static/css/zhyd.core.css +++ b/blog-web/src/main/resources/static/css/zhyd.core.css @@ -541,10 +541,11 @@ a:-webkit-any-link { /* 面包屑导航 */ .breadcrumb { - padding: 4px; + padding: 10px; margin-bottom: 10px; list-style: none; background-color: #ffffff; + border-radius: 0; } /* 面包屑导航 */ @@ -3640,3 +3641,30 @@ div.scrollmenu a, div.scrollmenu span { div.scrollmenu a.active, div.scrollmenu a:hover { background-color: #eeeeee!important; } + + +.ob-alert { + background: #fffcef; + padding: 15px; + color: #db7c22; + border: 1px solid #ffbb76; +} + +.ob-alert .title { + display: flex; + align-items: center; + margin-bottom: 10px; + font-size: 15px; + font-weight: 500 +} + +.ob-alert .title .icon { + width: 20px; + height: 20px; + margin-right: 8px +} + +.ob-alert .content { + padding: 0; + padding-left: 28px; +} diff --git a/blog-web/src/main/resources/templates/article.ftl b/blog-web/src/main/resources/templates/article.ftl index f595e3b533fe58861f2add190b50985a1e1f9985..66c4aaf47f33da8f162d000ac5bfb571079516f2 100644 --- a/blog-web/src/main/resources/templates/article.ftl +++ b/blog-web/src/main/resources/templates/article.ftl @@ -39,6 +39,19 @@ ${article.title}
+ <#-- 文章最后修改日期的判断 --> + <#assign intervalDayNum=((.now?long - article.updateTime?long)?abs / (1000 * 60 * 60 * 24))?int> + <#if intervalDayNum gt 1> +
+
+ + 温馨提示: +
+
+ 本文最后更新于 ${article.updateTime?string('yyyy年MM月dd日')},已超过 ${intervalDayNum} 天没有更新。若文章内的图片失效(无法正常加载),请留言反馈或直接联系我。 +
+
+ <#if article.requiredAuth> - <@zhydTag method="recentComments" pageSize="10"> + <@zhydTag method="recentComments" pageSize="5"> <#if recentComments?? && recentComments?size gt 0>