Repository: shiro-site
Updated Branches:
  refs/heads/master 06f534375 -> b044c0ef1


use template related links for download.html


Project: http://git-wip-us.apache.org/repos/asf/shiro-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/shiro-site/commit/b044c0ef
Tree: http://git-wip-us.apache.org/repos/asf/shiro-site/tree/b044c0ef
Diff: http://git-wip-us.apache.org/repos/asf/shiro-site/diff/b044c0ef

Branch: refs/heads/master
Commit: b044c0ef1576623051b0a815293b50b79a095f1e
Parents: 06f5343
Author: Brian Demers <[email protected]>
Authored: Mon Oct 24 18:16:44 2016 -0400
Committer: Brian Demers <[email protected]>
Committed: Mon Oct 24 18:16:44 2016 -0400

----------------------------------------------------------------------
 config.scms.groovy | 19 +++++++++++++++++++
 download.html.vtl  | 27 ---------------------------
 2 files changed, 19 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/shiro-site/blob/b044c0ef/config.scms.groovy
----------------------------------------------------------------------
diff --git a/config.scms.groovy b/config.scms.groovy
index 48ddbc8..d906585 100644
--- a/config.scms.groovy
+++ b/config.scms.groovy
@@ -97,8 +97,27 @@ scms {
             authzGuideLink
     ]
 
+    downloadRelatedLinks = [
+            gettingStartedLink,
+            tenMinuiteTutorialLink,
+            webAppTutorialLink,
+            authcGuideLink,
+            authzGuideLink,
+    ]
+
     patterns {
 
+        '**/download.html.vtl' {
+            template = 'templates/default.vtl'
+            model {
+                //the above template uses the year for a copyright notice:
+                year = Calendar.getInstance().get(Calendar.YEAR)
+                layout = 'templates/layouts/related.vtl'
+                relatedLinks = downloadRelatedLinks
+                topSpacing = '60px'
+            }
+        }
+
         '**/web.md.vtl' {
             template = 'templates/default.vtl'
             model {

http://git-wip-us.apache.org/repos/asf/shiro-site/blob/b044c0ef/download.html.vtl
----------------------------------------------------------------------
diff --git a/download.html.vtl b/download.html.vtl
index ab56fe9..bed8235 100644
--- a/download.html.vtl
+++ b/download.html.vtl
@@ -2,33 +2,6 @@
 
 <h1><a name="Download-DownloadApacheShiro"></a>Download Apache Shiro</h1>
 
-<table align="right" width="275" style="margin-left: 20px; margin-bottom: 
20px; border-style: solid; border-width: 2px; border-color: navy" 
cellpadding="10px">
-
-<tr>
-<td>
-<div id="border">
-  <h2>Related Content</h2>
-       
-  <h3><a href="get-started.html">Getting Started</a></h3>
-  <p>Resources, guides and tutorials for new Shiro users. </br><span 
style="font-size:11"><a href="get-started.html">Read More 
&gt;&gt;</a></span></p> 
-       
-       <h3><a href="10-minute-tutorial.html">10-Minute Shiro Tutorial</a></h3>
-  <p>Try Apache Shiro for yourself in under 10 minutes. </br><span 
style="font-size:11"><a href="10-minute-tutorial.html">Read More 
&gt;&gt;</a></span></p>
-       
-  <h3><a href="webapp-tutorial.html">Web App Tutorial</a></h3>
-  <p>Step-by-step tutorial for securing a web application with Shiro. 
</br><span style="font-size:11"><a href="webapp-tutorial.html">Read More 
&gt;&gt;</a></span></p>
-       
-  <h3><a href="java-authentication-guide.html">Java Authentication 
Guide</a></h3>
-  <p>Learn how Authentication in Java is performed in Shiro. </br><span 
style="font-size:11"><a href="java-authentication-guide.html">Read More 
&gt;&gt;</a></span></p>        
-       
-  <h3><a href="java-authorization-guide.html">Java Authorization Guide</a></h3>
-  <p>Learn how Shiro handles access control in Java. </br><span 
style="font-size:11"><a href="java-authorization-guide.html">Read More 
&gt;&gt;</a></span></p> 
-
-</div>
-</td>
-</tr>
-</table>
-
 <p>Apache Shiro ${latestRelease} is the current stable release (Java 1.6+ 
JVM).</p>
 
 <p>To download Shiro please follow the instructions below.</p>

Reply via email to