All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.maven.page-default.vm Maven / Gradle / Ivy

Go to download

Reflow is an Apache Maven site skin built on Twitter Bootstrap. It allows various structural and stylistic customizations to create a modern-looking Maven-generated website. Requires Reflow Velocity Tools.

There is a newer version: 2.4.0-beta2
Show newest version
##
## Copyright 2012-2018 Christophe Friederich
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
##   http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##



#*  *### resolve date position, or set the default otherwise (bottom)
#*  *### Note, that currently we do not support "navigation-top" position for either publishDate or version.
#*  *##set ( $datePosition = "bottom" )##
#*  *##if ( $decoration.publishDate.position )##
#*  *##set ( $datePosition = $decoration.publishDate.position )##
#*  *##end##
#*  *### resolve version position, or set the default otherwise (bottom)
#*  *##set ( $versionPosition = "bottom" )##
#*  *##if ( $decoration.version.position )##
#*      *##set ( $versionPosition = $decoration.version.position )##
#*  *##end##
##
#*  *##if ( $decoration.publishDate.position )##
#*      *##set ( $datePosition = $decoration.publishDate.position )##
#*  *##else##
#*      *##set ( $datePosition = "bottom" )##
#*  *##end##
##
#*  *##set ( $projectSiteLoc = $config.projectLocation )
#*  *##set ( $currentFileLoc = $config.currentFileLocation )
##
#*  *### absolute location of the current
#*  *##set( $bodyContent = $pageContext.preRender( $config) )##
#*  *### generate a short title if one does not exist or is specified explicitly
#*  *### if specified explicitly, use that
#*  *##set ( $shortTitleGenerated = false )##
#*  *##if ( !$config.not( "shortTitle" ) && ( !$shortTitle || $shortTitle == ''
      || ($config.shortTitle && !$config.isValue("shortTitle", "generate") && !$config.isValue("shortTitle", "true") ) ) )##
#*  *### Page title generation is enabled by default, so check for false and negate
#*  *##if ( $config.shortTitle && !$config.isValue("shortTitle", "generate") && !$config.isValue("shortTitle", "true") )##
#*      *### Use explicitly specified title
#*      *##set ( $shortTitle = $config.shortTitle.getValue() )
#*      *##set ( $shortTitleGenerated = true )
#*  *##else
#*      *### Generate the title.
#*      *### To generate the title, we take the contents of the first h1 tag in the document.
#*      *### If it does not exist, we take the contents of the first h2 tag.
#*      *##set ( $hTexts = $htmlTool.text( $bodyContent, "h1" ) )##
#*      *##if ( $hTexts.size() == 0 )#*
              *##set ( $hTexts = $htmlTool.text( $bodyContent, "h2" ) )#*
          *##end#*
          *##if ( $hTexts.size() > 0 )#*
              *##set ( $shortTitle = $hTexts.get(0) )#*
              *##set ( $shortTitleGenerated = true )#*
          *##end#*
      *##end#*
  *##end#*
  ## If title template is provided, use it to generate title.
  ## Also regenerate title if a new short title was generated.
  *##if ( $config.titleTemplate || $shortTitleGenerated )#*
    read the title template from configuration
      *##if ( $config.titleTemplate )#*
          *##set ( $titleTemplate = $config.titleTemplate.getValue() )#*
      *##else#*
      ## default template is "projectName - shortTitle"
          *##set ( $titleTemplate = "%1${esc.d}s - %2${esc.d}s" )#*
      *##end#*
    ## the company/project name is retrieved from decoration ( )
    ## or from the project itself
    *##if ( $decoration.name )#*
          *##set ( $titleProjectName = $decoration.name )#*
      *##elseif ( $project.name )#*
          *##set ( $titleProjectName = $project.name )#*
      *##else#*
          *##set ( $titleProjectName = "" )#*
      *##end#*
    ## use String.format() to create new title
      *##set ( $title = $titleTemplate.format( $titleTemplate, $titleProjectName, $shortTitle ) )#*
  *##end##
##
    
    
    $title
    
    
#*  *##foreach ( $author in $authors )##
    
#*  *##end#*

  *##if ( $locale )##
      
#*  *##end
##
    ## use Bootstrap theme from BootstrapCDN (loaded over network)
    #if ( $config.theme && $config.theme.getValue().startsWith("bootswatch-") )##
        #set ( $bootswatchTheme = $config.theme.getValue().substring(11) )##
    #else##
        #set ( $bootswatchTheme = false )##
    #end##
    #if ($config.bootstrapVersion )##
        #set ( $bootstrapVersion = $config.bootstrapVersion.getValue() )##
    #else##
        #set ( $bootstrapVersion = "@bootstrapVersion@" )##
    #end##
    #if ($config.bootswatchVersion )##
        #set ( $bootswatchVersion = $config.bootswatchVersion.getValue() )##
    #else##
        #set ( $bootswatchVersion = "@bootswatchVersion@" )##
    #end##
#*  *##if ( $config.popperVersion )
#*      *##set ( $popperVersion = $config.popperVersion.getValue() )
#*  *##else
#*      *##set ( $popperVersion = "@popperVersion@" )
#*  *##end
##
    #if ( $localResources )##
        #set ( $bootstrapCssPath = "$resourcePath/css" )
        #set ( $bootstrapJsPath = "$resourcePath/js" )
        #set ( $popperJsPath = "$resourcePath/js" )
        #if ( $bootswatchTheme )##
            #set ( $bootstrapCssPath = "$resourcePath/css/themes/$bootswatchTheme" )##
        #end##
    #else
        #if ( $bootswatchTheme )
          #set ( $bootstrapCssPath = "https://netdna.bootstrapcdn.com/bootswatch/${bootswatchVersion}/$bootswatchTheme" )
        #else
            #set ( $bootstrapCssPath = "https://stackpath.bootstrapcdn.com/bootstrap/${bootstrapVersion}/css" )
        #end
        #set ( $bootstrapJsPath = "https://stackpath.bootstrapcdn.com/bootstrap/${bootstrapVersion}/js" )
        #set ( $popperJsPath = "https://cdnjs.cloudflare.com/ajax/libs/popper.js/${popperVersion}/umd/" )
    #end
##
    
##
#*  *##if ( $config.fontawesomeVersion )
#*      *##set ( $fontawesomeVersion = $config.fontawesomeVersion.getValue() )
#*  *##else
#*      *##set ( $fontawesomeVersion = "@fontawesomeVersion@" )
#*  *##end
##
#*  *##if ( $localResources )
    
#*  *##else
    
#*  *##end
##
    
##
#*  *##if ( $config.highlightJsVersion )
#*      *##set ( $highlightJsVersion = $config.highlightJsVersion.getValue() )
#*  *##else
#*      *##set ( $highlightJsVersion = "@highlightJsVersion@" )
#*  *##end
##
##
#*  *##if ( $config.is( "highlightJs" ) )
    ## get the configured theme, or use default if not explicitly specified
#*      *##if ( $config.highlightJsTheme )#*
          *##set ( $highlightJsTheme = $config.highlightJsTheme.getValue() )#*
        *##else#*
          *##set ( $highlightJsTheme = 'default' )#*
        *##end#*
    ## use a hosted version of highlight.js for syntax highlighting *#
#*      *##if ( $localResources )##
    
#*      *##else
    
#*      *##end
#*  *##end#*

  *##if ( !$config.not( "imgLightbox" ) )#*
    ## if not disabled, include lightbox for showing images *#
    
#*  *##end##
##
    
    
#*
  *##if ( $decoration.body.head )#*
      *#$render.eval( $decoration.body.head )#*
  *##end#*

  *##if( $headContent )#*
      *#$headContent#*
  *##end#*
  *#
      #googleAnalytics( $decoration.googleAnalyticsAccountId )
##
   
##
##
## put page and project slugs as classes to the . This allows page-specific CSS customizations.

#renderNavbar ()
#if( $pageType == "doc")
    #parse( "body-doc.vm")
#else
    #parse( "body-default.vm")
#end
#renderScrollTop()
#renderFooter()

  
  
##
#*
    *##if ( $localResources )##
    
#*  *##else#*
        *##if ( $config.jqueryVersion )#*
            *##set ( $jqueryVersion = $config.jqueryVersion.getValue() )#*
        *##else#*
            *##set ( $jqueryVersion = "@jqueryVersion@" )#*
        *##end##
  
#*  *##end##
##
    
    
#*
    *##if ( !$config.not( "imgLightbox" ) )#*
    ## if not disabled, include lightbox for showing images *#
  
#* *##end##
##
    #if ( $config.is( "highlightJs" ) )##
        #if ( $localResources )##
	
        #else##
	## use a hosted version of highlight.js for syntax highlighting	*###
	
        #end##
    #end##
##
#if ( $config.endContent )#*
    ## custom HTML (e.g. JavaScript) to place at the end of the document before 
#*  *##htmlContent ( $config.endContent.getChildren() )##
#end##
##
  
#*
    *##if ( $localResources )##
    
#*  *##else#*
        *##if ( $config.anchorJsVesrion )#*
            *##set ( $anchorJsVesrion = $config.anchorJsVesrion.getValue() )#*
        *##else#*
            *##set ( $anchorJsVesrion = "@anchorJsVesrion@" )#*
        *##end##
    
#*  *##end##
##
    





© 2015 - 2024 Weber Informatics LLC | Privacy Policy