forked from sawyerh/shaken-grid-siteleaf
-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.html
90 lines (77 loc) · 4.61 KB
/
default.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta property="st:title" content="{{title}}">
<meta property="st:type" content="{{type | replace:'post','product'}}">
{% if assets.size > 0 %}<meta property="st:image" content="{{assets.first.permalink}}">{% endif %}
{% if date %}<meta property="st:published_at" content="{{date | date_to_xmlschema}}">{% endif %}
<title>{{site.title}} | {{title | replace:site.pages.first.title, site.meta.subtitle}}</title>
<link rel="alternate" type="application/rss+xml" href="{{site.feed_url}}" />
<link rel="stylesheet" type="text/css" href="/styles/css/woodshop.css?20131210" />
<link rel="stylesheet" type="text/css" href="//cdn.symbolset.com/4c5f109e6780e4ee4ab1c4104b8bc42a099215ff/symbolset.css" />
<script type="text/javascript" src="//use.typekit.net/yop6vqz.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
{% if slug == 'map' %}<script src="//maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script src="/scripts/js/map.js"></script>{% endif %}
{% if site.meta.head %}{{ site.meta.head }}{% endif %}
</head>
<body class="{{type | replace:'post','product'}}">
{% if site.meta.body_top %}{{ site.meta.body_top }}{% endif %}
<div class="wrap">
<header class="primary-header" data-swiftype-index="false">
<h1 class="site-title"><a href="/">{{site.title}}</a></h1>
<h2 class="sub-title">Crafted in the USA</h2>
<form class="search"><input type="text" id="st-search-input" class="st-search-input" /></form>
<nav class="nav-menu">
{% for page in site.pages %}
{% unless page.home? %}<a href="{{page.url}}"{% if page.url == url %} class="is-current-page"{% endif %}>{{page.title}}</a>{% endunless %}
{% endfor %}
</nav>
<nav class="category-menu">
<a href="/"{% if home? %} class="is-current-page"{% endif %}>New</a>
{% assign sorted_categories = site.pages.products.taxonomy.category.tags | sort:'value' %}
{% for category in sorted_categories %}
<a href="{{category.url}}"{% if category.url == url %} class="is-current-page"{% endif %}>{{category.value}}</a>
{% endfor %}
</nav>
</header>
{% if slug == 'map' %}{% assign tags = site.pages.products.taxonomy.in.tags %}<div id="map-canvas"></div>{% endif %}
{% if type == 'page' and posts.size > 0 and body != '' %}
<div class="page-summary body">{{ body }}</div>
{% elsif type == 'post' or (type == 'page' and body != '') %}
{% include "includes/body" %}
{% endif %}
{% if posts.size > 0 %}
{% include "includes/post-grid" %}
{% if home? %}<a href="{{ archive_url }}" class="view-all-button button">View all</a>{% endif %}
{% elsif type != 'post' and tags.size > 0 %}
{% include "includes/tag-listing" %}
{% endif %}
<footer class="credit" data-swiftype-index="false">
<p>Crafted in Brooklyn by <a href="http://oak.is" target="_blank">Oak</a>. Powered by <a href="http://www.siteleaf.com" target="_blank">Siteleaf</a>.</p>
<p class="social"><a href="https://twitter.com/{{site.meta.twitter}}" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @{{site.meta.twitter}}</a></p>
</footer>
</div>
<script src="/scripts/js/min/application.js"></script>
<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', '{{site.meta.google_analytics}}', '{{site.domain}}');
ga('send', 'pageview');
var Swiftype = window.Swiftype || {};
(function() {
Swiftype.key = '{{site.meta.swiftype}}';
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
script.src = "//swiftype.com/embed.js";
var entry = document.getElementsByTagName('script')[0];
document.getElementsByTagName('script')[0].parentNode.insertBefore(script, entry);
}());
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
</script>
{% if site.meta.body_bottom %}{{ site.meta.body_bottom }}{% endif %}
</body>
</html>