Эх сурвалжийг харах

Merge branch 'gh-pages'

Conflicts:
	_layouts/default.html
	index.html
Daniel Buckmaster 12 жил өмнө
parent
commit
e7cd53fdf4

+ 23 - 23
_layouts/default.html

@@ -8,12 +8,12 @@
         <title>{{page.title}}</title>
         <link rel="icon" type="image/x-icon" href="/favicon.ico">
 
-        <link rel="stylesheet" href="/css/main.css">
-        <link rel="stylesheet" href="/css/bootstrap.min.css">
-        <link rel="stylesheet" href="/css/font-awesome.min.css">
+        <link rel="stylesheet" href="{{page.root}}/css/main.css">
+        <link rel="stylesheet" href="{{page.root}}/css/bootstrap.min.css">
+        <link rel="stylesheet" href="{{page.root}}/css/font-awesome.min.css">
 
-        <script type="text/javascript" src="/js/jquery-1.11.0.min.js"></script>
-        <script type="text/javascript" src="/js/bootstrap.min.js"></script>
+        <script type="text/javascript" src="{{page.root}}/js/jquery-1.11.0.min.js"></script>
+        <script type="text/javascript" src="{{page.root}}/js/bootstrap.min.js"></script>
     </head>
 
     <body>
@@ -33,45 +33,45 @@
                     <div class="navbar-collapse collapse">
                         <ul class="nav navbar-nav">
                             <li class="dropdown">
-                                <a href="/engine" class="dropdown-toggle" data-toggle="dropdown">Engine<i class="fa fa-angle-down"></i></a>
+                                <a href="{{page.root}}/engine" class="dropdown-toggle" data-toggle="dropdown">Engine<i class="fa fa-angle-down"></i></a>
                                 <ul class="dropdown-menu">
-                                    <li><a href="/engine#features">Features</a></li>
-                                    <li><a href="/engine#roadmap">Roadmap</a></li>
-                                    <li><a href="/engine#made-with-torque">Made with Torque</a></li>
-                                    <li><a href="/engine#history">History</a></li>
+                                    <li><a href="{{page.root}}/engine#features">Features</a></li>
+                                    <li><a href="{{page.root}}/engine#roadmap">Roadmap</a></li>
+                                    <li><a href="{{page.root}}/engine#made-with-torque">Made with Torque</a></li>
+                                    <li><a href="{{page.root}}/engine#history">History</a></li>
                                 </ul>
                             </li>
 
                             <li class="dropdown">
-                                <a href="/start" class="dropdown-toggle" data-toggle="dropdown">Get started<i class="fa fa-angle-down"></i></a>
+                                <a href="{{page.root}}/start" class="dropdown-toggle" data-toggle="dropdown">Get started<i class="fa fa-angle-down"></i></a>
                                 <ul class="dropdown-menu">
-                                    <li><a href="/start#download">Download</a></li>
-                                    <li><a href="/start#tutorials">Tutorials</a></li>
+                                    <li><a href="{{page.root}}/start#download">Download</a></li>
+                                    <li><a href="{{page.root}}/start#tutorials">Tutorials</a></li>
                                 </ul>
                             </li>
 
                             <li class="dropdown">
-                                <a href="/committee" class="dropdown-toggle" data-toggle="dropdown">Committee<i class="fa fa-angle-down"></i></a>
+                                <a href="{{page.root}}/committee" class="dropdown-toggle" data-toggle="dropdown">Committee<i class="fa fa-angle-down"></i></a>
                                 <ul class="dropdown-menu">
-                                    <li><a href="/committee#what-is-the-steering-committee">What is the Steering Committee?</a></li>
-                                    <li><a href="/committee#current-membership">Current membership</a></li>
-                                    <li><a href="/committee#charter">Charter</a></li>
+                                    <li><a href="{{page.root}}/committee#what-is-the-steering-committee">What is the Steering Committee?</a></li>
+                                    <li><a href="{{page.root}}/committee#current-membership">Current membership</a></li>
+                                    <li><a href="{{page.root}}/committee#charter">Charter</a></li>
                                 </ul>
                             </li>
 
                             <li class="dropdown">
-                                <a href="/contribute" class="dropdown-toggle" data-toggle="dropdown">Contribute<i class="fa fa-angle-down"></i></a>
+                                <a href="{{page.root}}/contribute" class="dropdown-toggle" data-toggle="dropdown">Contribute<i class="fa fa-angle-down"></i></a>
                                 <ul class="dropdown-menu">
-                                    <li><a href="/contribute#get-the-source-code">Get the source code</a></li>
-                                    <li><a href="/contribute#pull-request-guide">Pull-request guide</a></li>
-                                    <li><a href="/contribute#version-policy">Version policy</a></li>
+                                    <li><a href="{{page.root}}/contribute#get-the-source-code">Get the source code</a></li>
+                                    <li><a href="{{page.root}}/contribute#pull-request-guide">Pull-request guide</a></li>
+                                    <li><a href="{{page.root}}/contribute#version-policy">Version policy</a></li>
                                 </ul>
                             </li>
 
                             <li class="dropdown">
-                                <a href="/community" class="dropdown-toggle" data-toggle="dropdown">Community<i class="fa fa-angle-down"></i></a>
+                                <a href="{{page.root}}/community" class="dropdown-toggle" data-toggle="dropdown">Community<i class="fa fa-angle-down"></i></a>
                                 <ul class="dropdown-menu">
-                                    <li><a href="/community#forum">Forum</a></li>
+                                    <li><a href="{{page.root}}/community#forum">Forum</a></li>
                                 </ul>
                             </li>
                         </ul>

+ 1 - 0
committee/index.html

@@ -1,6 +1,7 @@
 ---
 layout: page
 title: Committee | Torque 3D
+root: ..
 ---
 
 <div class="banner"><div class="container">

+ 1 - 0
engine/index.html

@@ -1,6 +1,7 @@
 ---
 layout: page
 title: Engine | Torque 3D
+root: ..
 ---
 
 <div class="banner"><div class="container">

+ 7 - 6
index.html

@@ -1,6 +1,7 @@
 ---
 layout: default
 title: Torque 3D
+root: .
 ---
 
 <div class="jumbotron banner">
@@ -19,7 +20,7 @@ title: Torque 3D
                 <div class="container">
                     <table><tr>
                         <td>
-                            <img class="pull-left" src="/img/torque.png"></img>
+                            <img class="pull-left" src="{{page.root}}/img/torque.png"></img>
                         </td>
                         <td>
                             <h1 class="title">{{site.name}}</h1>
@@ -33,7 +34,7 @@ title: Torque 3D
                 <div class="container">
                     <table><tr>
                         <td>
-                            <img class="pull-left" src="/img/torque.png"></img>
+                            <img class="pull-left" src="{{page.root}}/img/torque.png"></img>
                         </td>
                         <td>
                             <h1 class="title">{{site.name}}</h1>
@@ -47,7 +48,7 @@ title: Torque 3D
                 <div class="container">
                     <table><tr>
                         <td>
-                            <img class="pull-left" src="/img/torque.png"></img>
+                            <img class="pull-left" src="{{page.root}}/img/torque.png"></img>
                         </td>
                         <td>
                             <h1 class="title">{{site.name}}</h1>
@@ -75,21 +76,21 @@ title: Torque 3D
             <p>Torque 3D is free as in speech <i>and</i> free as in beer. Under
             the permissive MIT license, you can do what you want with the source
             code!</p>
-            <a href="/start" class="pull-right">Download it now <i class="fa fa-angle-double-right"></i></a>
+            <a href="{{page.root}}/start" class="pull-right">Download it now <i class="fa fa-angle-double-right"></i></a>
         </div>
 
         <div class="col-sm-4">
             <h2>Feature rich</h2>
             <p>Packed with features and easy-to-use editors, T3D has you covered
             even if you have no programming experience.</p>
-            <a href="/engine" class="pull-right">Read the feature list <i class="fa fa-angle-double-right"></i></a>
+            <a href="{{page.root}}/engine" class="pull-right">Read the feature list <i class="fa fa-angle-double-right"></i></a>
         </div>
 
         <div class="col-sm-4">
             <h2>Always evolving</h2>
             <p>Torque 3D is being actively developed by an enthusiastic community.
             Can you help out?</p>
-            <a href="/contribute" class="pull-right">Get involved <i class="fa fa-angle-double-right"></i></a>
+            <a href="{{page.root}}/contribute" class="pull-right">Get involved <i class="fa fa-angle-double-right"></i></a>
         </div>
     </div>