shithub: hugo

Download patch

ref: 532e2e7b931e852c6c96711ba2e6eaea8911d7b7
parent: ad04f6c899a1e427e80fe97bc7418d56b28393dc
author: spf13 <[email protected]>
date: Fri Nov 8 20:16:34 EST 2013

Some mobile and other fixes for docs

--- /dev/null
+++ b/docs/layouts/chrome/analytics.html
@@ -1,0 +1,10 @@
+<script>
+  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+  ga('create', 'UA-7131036-4', 'spf13.com');
+  ga('send', 'pageview');
+
+</script>
--- a/docs/layouts/chrome/footer.html
+++ b/docs/layouts/chrome/footer.html
@@ -12,6 +12,7 @@
       </div>
       <script src="/static/js/jquery.js"></script>
       <script src="/static/js/bootstrap.min.js"></script>
+    {{ template "chrome/analytics.html" . }}
   </body>
 
 </html>
--- a/docs/layouts/index.html
+++ b/docs/layouts/index.html
@@ -24,9 +24,8 @@
         <h1>Hugo</h1>
         <h3>The <em>Fast and Flexible</em> Static Site Generator</h3>
         <br>
-        <a href="#intro" class="btn btn-clear btn-lg">LEARN MORE</a>&nbsp; &nbsp;
+        <a href="#intro" class="btn btn-clear btn-lg">LEARN MORE</a>
         <a href="https://github.com/spf13/hugo/releases" class="btn btn-success btn-lg">DOWNLOAD <i class="icon-arrow-down"></i></a><br>
-        <br>
         <a href="/overview/quickstart/" class="btn btn-info btn-lg">DOCUMENTATION</a>
       </div>
     </div>
@@ -161,8 +160,8 @@
             <div class="row">
               <div class="col-md-6 col-md-offset-3 text-center">
                 <h3>Get Started Today!</h3>
-                <a href="/overview/quickstart" class="btn btn-md btn-default">Documentation</a>
                 <a href="https://github.com/spf13/hugo/releases" class="btn btn-lg btn-primary">Download <i class="icon-arrow-down"></i></a>
+                <a href="/overview/quickstart" style="color:white;font-weight:300;">Documentation</a>
               </div>
             </div>
           </div>
@@ -211,6 +210,7 @@
       });
     </script>
 
+    {{ template "chrome/analytics.html" . }}
   </body>
 
 </html>
--- a/docs/static/static/css/HPstyles.css
+++ b/docs/static/static/css/HPstyles.css
@@ -24,8 +24,9 @@
 
 .header {
     display: table;
-    height: 85%;
+    height: 70%;
     width: 100%;
+    min-height: 70%;
     position: relative;
     background: url(../img/converse-fields.jpg) no-repeat center center fixed;
     -webkit-background-size: cover;
@@ -36,6 +37,43 @@
     background-color: black;
 }
 
+@media only screen 
+and (min-device-width : 320px)
+and (max-device-width : 1024px)
+and (orientation : portrait)
+{
+    .header {
+        display: table;
+        height: 70%;
+        width: 100%;
+        position: relative;
+        background: url(../img/converse-fields-mini.jpg) no-repeat;
+        background-size: 100% 100%;
+        z-index: 99999;
+        background-color: black;
+    }
+}
+
+@media only screen 
+and (min-device-width : 320px)
+and (max-device-width : 1024px)
+and (orientation : landscape) {
+    .header {
+        display: table;
+        height: 70%;
+        width: 100%;
+        position: relative;
+        background: url(../img/converse-fields-long.jpg) no-repeat;
+        background-size: 100% 100%;
+        z-index: 99999;
+        background-color: black;
+    }
+}
+
+.header .btn {
+    margin: 10px;
+}
+
 #main {
     z-index: 99999;
     position: relative;
@@ -136,7 +174,7 @@
     display: table;
     height: 400px;
     width: 100%;
-    background: url(../img/section-two.JPG) no-repeat center center fixed; 
+    background: url(/static/img/section-two.JPG) no-repeat center center fixed; 
     -webkit-background-size: cover;
     -moz-background-size: cover;
     -o-background-size: cover;
@@ -168,7 +206,7 @@
 }
 
 #action {
-    background: url(../img/gray.png);
+    background: url(/static/img/gray.png);
     padding: 50px 0px 30px;
     position: fixed;
     bottom: 130px;
@@ -219,8 +257,8 @@
 
 
 .btn-clear {
-    color: #FFF;
-    background-color: rgba(255, 255, 255, 0.19);
+    color: #444;
+    background-color: rgba(255, 255, 255, 0.5);
     border-color: #FFF;
 }
 
binary files /dev/null b/docs/static/static/img/converse-fields-long.jpg differ
binary files /dev/null b/docs/static/static/img/converse-fields-mini.jpg differ
binary files /dev/null b/docs/static/static/img/converse-fields-sm.jpg differ
binary files a/docs/static/static/img/converse-fields.jpg b/docs/static/static/img/converse-fields.jpg differ