0 Votes

Changes for page Nonwhite Privilege

Last modified by Ryan C on 2025/06/02 17:54

From version 118.1
edited by Ryan C
on 2025/05/03 16:21
Change comment: There is no comment for this version
To version 117.1
edited by Ryan C
on 2025/05/03 16:20
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -95,11 +95,16 @@
95 95  
96 96  {{velocity}}
97 97  #set($attachments = $doc.getAttachmentList())
98 +
99 +#macro(imageentry $filename)
100 +#if($filename.endsWith(".jpg") || $filename.endsWith(".png") || $filename.endsWith(".webp"))
101 + image:$doc.space/$doc.name/WebHome@$escapetool.url($filename)
102 +#end
103 +#end
104 +
98 98  {{gallery}}
99 99  #foreach($attachment in $attachments)
100 - #if($attachment.filename.endsWith(".jpg") || $attachment.filename.endsWith(".png") || $attachment.filename.endsWith(".webp"))
101 - image:$doc.fullName@$escapetool.url($attachment.filename)
102 - #end
107 + #imageentry($attachment.filename)
103 103  #end
104 104  {{/gallery}}
105 105  {{/velocity}}