diff options
Diffstat (limited to 'docs/post/creating-a-new-theme/index.html')
-rw-r--r--[-rwxr-xr-x] | docs/post/creating-a-new-theme/index.html | 86 |
1 files changed, 70 insertions, 16 deletions
diff --git a/docs/post/creating-a-new-theme/index.html b/docs/post/creating-a-new-theme/index.html index 3af24b8..3a597ad 100755..100644 --- a/docs/post/creating-a-new-theme/index.html +++ b/docs/post/creating-a-new-theme/index.html @@ -3,40 +3,95 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Creating a New Theme</title> <meta name="description" content=""> + <meta name="image" content=""> <meta itemprop="name" content="Creating a New Theme"> <meta itemprop="description" content=""> + <meta itemprop="image" content=""> <meta name="twitter:card" content="summary"> <meta name="twitter:title" content="Creating a New Theme"> <meta name="twitter:description" content=""> + <meta name="twitter:site" content="@yakczar"> + <meta name="twitter:creator" content="@yakczar"> + <meta name="twitter:image:src" content=""> <meta name="og:title" content="Creating a New Theme"> <meta name="og:description" content=""> - <meta name="og:type" content="website"> - <link rel="stylesheet" type="text/css" href="https://schollz.github.io/onetwothree/css/style.css"> - <script src="https://schollz.github.io/onetwothree/js/caption.js"></script> + + <meta name="og:url" content="http://schollz.github.io/onetwothree/post/creating-a-new-theme/"> + <meta name="og:site_name" content="Creating a New Theme"> + <meta name="og:type" content="article"> + + <meta name="article:author" content="yakczar"> + <meta name="article:tag" content=""> + <link rel="stylesheet" type="text/css" href="http://schollz.github.io/onetwothree/css/style.css"> + <script src="http://schollz.github.io/onetwothree/js/caption.js"></script> </head> <body> + -<header> - <a href="https://schollz.github.io/onetwothree/">/posts</a> - - · <a href="https://schollz.github.io/onetwothree/about/" style="color:black;">/About Hugo</a> - +<header style="color:#CCCCCC;"> + <a href="http://schollz.github.io/onetwothree/" style="color:#CCCCCC;"><strong>Posts</strong></a> · <a href="http://schollz.github.io/onetwothree/about/" style="color:#CCCCCC;"><strong>About Hugo</strong></a> -</header> +</header>
+
+<div id="loadingMask" style="width: 100%; height: 100%; position: fixed; background: #fff;"></div>
+<script>
+function fadeOut(el) {
+ el.style.opacity = 1;
+
+ var last = +new Date();
+ var tick = function() {
+ el.style.opacity = +el.style.opacity - (new Date() - last) / 80;
+ last = +new Date();
+
+ if (el.style.opacity > 0) {
+ (window.requestAnimationFrame && requestAnimationFrame(tick)) || setTimeout(tick, 16);
+ } else {
+ el.style.display='none';
+ }
+ };
+ tick();
+}
+
+function ready(fn) {
+ if (document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading") {
+ el = document.getElementById('loadingMask');
+ fadeOut(el);
+ var elements = document.querySelectorAll("img");
+ Array.prototype.forEach.call(elements, function(el, i) {
+ if (el.getAttribute("alt")) {
+ const caption = document.createElement('figcaption');
+ var node = document.createTextNode(el.getAttribute("alt"));
+ caption.appendChild(node);
+ const wrapper = document.createElement('figure');
+ wrapper.className = 'image';
+ el.parentNode.insertBefore(wrapper, el);
+ el.parentNode.removeChild(el);
+ wrapper.appendChild(el);
+ wrapper.appendChild(caption);
+ }
+ });
+
+ } else {
+ document.addEventListener('DOMContentLoaded', fn);
+ }
+}
+window.onload = ready;
+</script>
<div class="content">
- <h1>Creating a New Theme <aside> </aside></h1>
+ <h1>Creating a New Theme <aside></aside></h1>
<h2 id="introduction">Introduction</h2> @@ -1134,17 +1189,19 @@ $ vi themes/zafta/layouts/_default/single.html </div>
-
<footer>
+
<p><small><em>Written September 28, 2014. </em>
+
+ Send feedback to <a href="https://twitter.com/intent/tweet?text=%40yakczar%20%23postcreating-a-new-theme%20">@yakczar</a>.
</small></p>
<p>
- <a href="https://schollz.github.io/onetwothree/post/migrate-from-jekyll/">← Migrate to Hugo from Jekyll</a>
+ <a href="http://schollz.github.io/onetwothree/post/migrate-from-jekyll/">← Migrate to Hugo from Jekyll</a>
+
</p>
-</span>
</footer>
@@ -1152,8 +1209,5 @@ $ vi themes/zafta/layouts/_default/single.html -
-
-
</body>
</html>
|