You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2024/09/08 16:33:06 UTC

(maven-fluido-skin) branch consistent-args created (now e68a76c)

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a change to branch consistent-args
in repository https://gitbox.apache.org/repos/asf/maven-fluido-skin.git


      at e68a76c  Make #link() macro args type-consistent

This branch includes the following new commits:

     new e68a76c  Make #link() macro args type-consistent

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(maven-fluido-skin) 01/01: Make #link() macro args type-consistent

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch consistent-args
in repository https://gitbox.apache.org/repos/asf/maven-fluido-skin.git

commit e68a76ccf4365ebbda0464071fdb5e39928488f1
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Sep 8 18:32:58 2024 +0200

    Make #link() macro args type-consistent
---
 src/main/resources/META-INF/maven/site-macros.vm | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main/resources/META-INF/maven/site-macros.vm b/src/main/resources/META-INF/maven/site-macros.vm
index e6b853e..88b783d 100644
--- a/src/main/resources/META-INF/maven/site-macros.vm
+++ b/src/main/resources/META-INF/maven/site-macros.vm
@@ -48,7 +48,7 @@
 #**##end
 #end
 ##
-#macro( link $link $icon = false $omitImage = false $elemOnEmptyHref = "a" $dotSlashOnEmptyHref = false $imageClass = "imageLink" $overrideElemClass = false )
+#macro( link $link $iconClass = null $omitImage = false $elemOnEmptyHref = "a" $dotSlashOnEmptyHref = null $imageClass = "imageLink" $overrideElemClass = null )
 #**##if( $link.name )
 #*  *##set( $name = $esc.xml( $link.name ) )
 #**##else
@@ -103,8 +103,8 @@
 #*    *##if( $name )$name #end$img##
 #*  *##end
 #**##else
-#*  *##if( $icon )
-#*    *#<span class="$icon"></span>##
+#*  *##if( $iconClass )
+#*    *#<span class="$iconClass"></span>##
 #*  *##end
 #*  *#$name##
 #**##end
@@ -113,7 +113,7 @@
 #end
 ##
 #macro( topLink $link )
-#**##link ( $link false true )
+#**##link ( $link $null true )
 #end
 ##
 #macro( image $image $class )
@@ -150,7 +150,7 @@
 ##
 #macro( banner $banner $id )
 #**##if( $banner )
-#*  *#<div id="$id"><h1>#link( $banner false false false "set" false "" )</h1></div>##
+#*  *#<div id="$id"><h1>#link( $banner $null false $null "set" $null "" )</h1></div>##
 #**##end
 #end
 ##
@@ -177,7 +177,7 @@
 #**##set( $breadcrumbDivider = $site.getCustomValue( 'fluidoSkin.breadcrumbDivider', '/' ) )
 #**##foreach( $item in $breadcrumbs )
       <li#if( $cssClass ) class="$cssClass"#end>##
-#*  *##link( $item false false "a" "always" )
+#*  *##link( $item $null false "a" "always" )
 #*  *#<span class="divider">$breadcrumbDivider</span>##
 #*  *#</li>
 #**##end
@@ -253,7 +253,7 @@ $indent     </ul>##
   <ul class="nav nav-list">
 #**##foreach( $menu in $menus )
 #**##if( $menu.name )
-   <li class="nav-header">#link( $menu false false false )</li>
+   <li class="nav-header">#link( $menu $null false $null )</li>
 #**##end
 #**##if( $menu.items && $menu.items.size() > 0 )
 #*  *##foreach( $item in $menu.items )
@@ -381,7 +381,7 @@ $indent     </ul>##
 #macro( builtByLogo $poweredBy )
 #**##if( $poweredBy )
 #**##foreach( $item in $poweredBy )
-#*  *##link( $item false false "span" false "builtBy" "builtBy" )
+#*  *##link( $item $null false "span" $null "builtBy" "builtBy" )
 
 #**##end
 #**##else