shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lhazlew...@apache.org
Subject svn commit: r1481422 - in /shiro/site/trunk: config.scms.groovy templates/default.vtl
Date Sat, 11 May 2013 21:32:28 GMT
Author: lhazlewood
Date: Sat May 11 21:32:28 2013
New Revision: 1481422

URL: http://svn.apache.org/r1481422
Log:
Made minor change to page template.  Fixed exclude directive to ensure that .git and .svn
directories were correctly ignored during rendering.

Modified:
    shiro/site/trunk/config.scms.groovy
    shiro/site/trunk/templates/default.vtl

Modified: shiro/site/trunk/config.scms.groovy
URL: http://svn.apache.org/viewvc/shiro/site/trunk/config.scms.groovy?rev=1481422&r1=1481421&r2=1481422&view=diff
==============================================================================
--- shiro/site/trunk/config.scms.groovy (original)
+++ shiro/site/trunk/config.scms.groovy Sat May 11 21:32:28 2013
@@ -1,6 +1,6 @@
 scms {
 
-    excludes = ['templates/**', '.svn', '.git', '.gitignore', '**/*.iml', '**/*.ipr', '**/*.iws']
+    excludes = ['templates/**', '**/.svn', '**/.git', '**/.gitignore', '**/*.iml', '**/*.ipr',
'**/*.iws']
 
     patterns {
 

Modified: shiro/site/trunk/templates/default.vtl
URL: http://svn.apache.org/viewvc/shiro/site/trunk/templates/default.vtl?rev=1481422&r1=1481421&r2=1481422&view=diff
==============================================================================
--- shiro/site/trunk/templates/default.vtl (original)
+++ shiro/site/trunk/templates/default.vtl Sat May 11 21:32:28 2013
@@ -22,18 +22,21 @@
     <meta name="msvalidate.01" content="0B57EB46CBFAD8FD45008D2DB6B6C68C">
     <meta name="y_key" content="e47896cd6bae4920">
 
-    ## Only render a <title> element if the page specifies a title:
+    <title>
     #if ($title)
-        <title>
         #if($title.contains("|"))
-            ## specifying a custom title, just render it directly:
+            ## The page has a full custom title, render it directly:
             $title
         #else
             ## standard title, append the project name appended for SEO:
             $title | Apache Shiro
         #end
-        </title>
+    #else
+        ## No title found in the page metadata, set the default:
+        Apache Shiro | Java Security Framework
     #end
+    </title>
+
 
     <link rel="icon" type="image/vnd.microsoft.icon" href="$root/assets/images/favicon.ico">
 



Mime
View raw message