Updated Google custom search
[ghost-theme-willow.git] / default.hbs
index 05fd1c6b34b55cac3d5bc7c24103aca0ca5db6d4..a9971b8b484c415f8779a0336e6b459fe396365e 100644 (file)
@@ -1,44 +1,35 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
 <head>
-    {{> "head"}}
+    {{>"head"}}
     {{ghost_head}}
 </head>
-<body class="{{body_class}}">
-    <div id="wrapper" class="wrapper">
-        <div id="viewport" class="viewport">
-            <div id="sidebar" class="sidebar">
-                <div class="sidebar-header" style="background-image: url({{@blog.cover}})">
-                    <a href="{{@blog.url}}" title="{{@blog.title}}">
-                        <img src="{{@blog.logo}}" alt="{{@blog.title}}">
-                    </a>
-                </div>
-
-                <h1>
-                    <a href="{{@blog.url}}" title="{{@blog.title}}">
-                        {{@blog.title}}
-                    </a>
-                </h1>
 
-                <h2>
-                    {{@blog.description}}
-                </h2>
-
-                {{> "social-links"}}
-                {{navigation}}
-            </div>
+<body class="{{body_class}}">
+    <div id="site-wrapper" class="c-site-wrapper">
+        <div id="site-viewport" class="c-site-viewport">
+            {{>"sidebar"}}
 
-            <div class="content" id="content">
+            <div id="site-content" class="c-site-content">
                 {{> "mobile-header"}}
-
-                <div class="main-section">
-                    {{{body}}}
-                </div>
+                {{{body}}}
             </div>
         </div>
     </div>
 
-    <script type="text/javascript" src="{{asset "js/script.js"}}"></script>
+    <script src="{{asset "js/scripts.js"}}"></script>
     {{ghost_foot}}
+
+    <script>
+    var images = document.querySelectorAll('.kg-gallery-image img');
+    images.forEach(function (image) {
+        var container = image.closest('.kg-gallery-image');
+        var width = image.attributes.width.value;
+        var height = image.attributes.height.value;
+        var ratio = width / height;
+        container.style.flex = ratio + ' 1 0%';
+    })
+    </script>
+
 </body>
 </html>
\ No newline at end of file