struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject svn commit: r1566254 - in /struts/site/branches/jekyll-powered: _config.yml source/_includes/header.html source/_layouts/default.html source/_layouts/main-page.html
Date Sun, 09 Feb 2014 08:51:51 GMT
Author: lukaszlenart
Date: Sun Feb  9 08:51:50 2014
New Revision: 1566254

URL: http://svn.apache.org/r1566254
Log:
Defines site root to allow easily testing locally

Modified:
    struts/site/branches/jekyll-powered/_config.yml
    struts/site/branches/jekyll-powered/source/_includes/header.html
    struts/site/branches/jekyll-powered/source/_layouts/default.html
    struts/site/branches/jekyll-powered/source/_layouts/main-page.html

Modified: struts/site/branches/jekyll-powered/_config.yml
URL: http://svn.apache.org/viewvc/struts/site/branches/jekyll-powered/_config.yml?rev=1566254&r1=1566253&r2=1566254&view=diff
==============================================================================
--- struts/site/branches/jekyll-powered/_config.yml (original)
+++ struts/site/branches/jekyll-powered/_config.yml Sun Feb  9 08:51:50 2014
@@ -5,3 +5,8 @@ pygments: true
 source: source
 destination: content
 encoding: UTF-8
+
+# Defines root of the site:
+# "" - when you want to deploy to production
+# "." - if you want to test the site at your home folder at Apache (ie. http://people.apache.org/~lukaszlenart)
+root:

Modified: struts/site/branches/jekyll-powered/source/_includes/header.html
URL: http://svn.apache.org/viewvc/struts/site/branches/jekyll-powered/source/_includes/header.html?rev=1566254&r1=1566253&r2=1566254&view=diff
==============================================================================
--- struts/site/branches/jekyll-powered/source/_includes/header.html (original)
+++ struts/site/branches/jekyll-powered/source/_includes/header.html Sun Feb  9 08:51:50 2014
@@ -9,11 +9,11 @@
     <div class="row">
       <div class="pull-left">
         <a href="/" id="bannerLeft">
-          <img src="/img/struts.gif" alt="Apache Struts"/>
+          <img src="{{ site.root }}/img/struts.gif" alt="Apache Struts"/>
         </a>
       </div>
       <div class="pull-right"><a href="http://www.apache.org" id="bannerRight">
-        <img src="/img/asf-logo.gif" alt="Apache Software Foundation"/>
+        <img src="{{ site.root }}/img/asf-logo.gif" alt="Apache Software Foundation"/>
       </a>
       </div>
     </div>

Modified: struts/site/branches/jekyll-powered/source/_layouts/default.html
URL: http://svn.apache.org/viewvc/struts/site/branches/jekyll-powered/source/_layouts/default.html?rev=1566254&r1=1566253&r2=1566254&view=diff
==============================================================================
--- struts/site/branches/jekyll-powered/source/_layouts/default.html (original)
+++ struts/site/branches/jekyll-powered/source/_layouts/default.html Sun Feb  9 08:51:50 2014
@@ -9,12 +9,12 @@
 
   <title>{{ page.title }}</title>
 
-  <link rel="stylesheet" href="/bootstrap/css/bootstrap.css">
-  <link rel="stylesheet" href="/css/main.css">
+  <link rel="stylesheet" href="{{ site.root }}/bootstrap/css/bootstrap.css">
+  <link rel="stylesheet" href="{{ site.root }}/css/main.css">
 
-  <script type="text/javascript" src="/js/jquery-1.11.0.min.js"></script>
-  <script type="text/javascript" src="/bootstrap/js/bootstrap.js"></script>
-  <script type="text/javascript" src="/js/community.js"></script>
+  <script type="text/javascript" src="{{ site.root }}/js/jquery-1.11.0.min.js"></script>
+  <script type="text/javascript" src="{{ site.root }}/bootstrap/js/bootstrap.js"></script>
+  <script type="text/javascript" src="{{ site.root }}/js/community.js"></script>
 </head>
 <body>
 

Modified: struts/site/branches/jekyll-powered/source/_layouts/main-page.html
URL: http://svn.apache.org/viewvc/struts/site/branches/jekyll-powered/source/_layouts/main-page.html?rev=1566254&r1=1566253&r2=1566254&view=diff
==============================================================================
--- struts/site/branches/jekyll-powered/source/_layouts/main-page.html (original)
+++ struts/site/branches/jekyll-powered/source/_layouts/main-page.html Sun Feb  9 08:51:50
2014
@@ -9,12 +9,12 @@
 
   <title>{{ page.title }}</title>
 
-  <link rel="stylesheet" href="/bootstrap/css/bootstrap.css">
-  <link rel="stylesheet" href="/css/main.css">
+  <link rel="stylesheet" href="{{ site.root }}/bootstrap/css/bootstrap.css">
+  <link rel="stylesheet" href="{{ site.root }}/css/main.css">
 
-  <script type="text/javascript" src="/js/jquery-1.11.0.min.js"></script>
-  <script type="text/javascript" src="/bootstrap/js/bootstrap.js"></script>
-  <script type="text/javascript" src="/js/community.js"></script>
+  <script type="text/javascript" src="{{ site.root }}/js/jquery-1.11.0.min.js"></script>
+  <script type="text/javascript" src="{{ site.root }}/bootstrap/js/bootstrap.js"></script>
+  <script type="text/javascript" src="{{ site.root }}/js/community.js"></script>
 </head>
 <body>
 



Mime
View raw message