文档更改Home
由 Yang Sheng 于 2025-02-42,18:57 最后修改
摘要
-
页面属性 (1 修改, 0 新增, 0 删除)
细节
- 页面属性
-
- 内容
-
... ... @@ -10,8 +10,6 @@ 10 10 11 11 == == 12 12 13 - 14 - 15 15 (% class="col-xs-12 col-sm-6" %) 16 16 ((( 17 17 === 近期更新 === ... ... @@ -33,6 +33,8 @@ 33 33 #set($recentDocs = $query.execute()) 34 34 35 35 #set($hasUpdates = false) 34 + #set($output = "") 35 + 36 36 #foreach($docFullName in $recentDocs) 37 37 #set($document = $xwiki.getDocument($docFullName)) 38 38 #if($document) ... ... @@ -44,33 +44,21 @@ 44 44 #if($docTitle == '') 45 45 #set($docTitle = "Untitled Document") 46 46 #end 47 - #if(!$hasUpdates) 48 - ==== $topPage ==== 49 - #set($hasUpdates = true) 50 - #end 51 - * [[${docTitle}>>${document.getExternalURL('view')}]] 47 + #set($output = "${output}* [[${docTitle}>>${document.getExternalURL('view')}]]\n") 48 + #set($hasUpdates = true) 52 52 #end 53 53 #end 54 54 #end 55 55 #end 53 + 54 + ## 仅在有更新时显示标题和内容 55 + #if($hasUpdates) 56 + = $topPage = 57 + $output 58 + #end 56 56 #end 57 57 {{/velocity}} 58 58 59 - 60 -))) 61 -{{html}} 62 -<style> 63 - .recent-updates h4 { 64 - margin-top: 10px; /* 根据需要调整 */ 65 - margin-bottom: 10px; /* 根据需要调整 */ 66 - } 67 -</style> 68 -{{/html}} 69 -(% class="col-xs-12 col-sm-6" %) 70 -((( 71 -=== 相关链接 === 72 72 73 -(% style="font-size:14px" %)[[北区AIO项目看板(IPV6访问)>>http://nas.nicebro.fun:57567||rel="noopener noreferrer" target="_blank"]] 74 -))) 75 - 76 76 64 +)))