layout: default
<div class=“blog-masthead”>
<div class="blog-masthead--logo"> <h1 class="blog-masthead--title">{{site.title}}</h1> <hr class="bar"> <h3 class="blog-masthead--tagline">{{site.description}}</h3> </div> <div class="blog-masthead--search"> <div class="aa-input-container" id="aa-input-container"> <input autofocus type="search" id="aa-search-input" class="aa-input-search" placeholder="Search" name="search" autocomplete="off" /> <svg class="aa-input-icon search-icon" viewBox="654 -372 1664 1664"> <path d="M1806,332c0-123.3-43.8-228.8-131.5-316.5C1586.8-72.2,1481.3-116,1358-116s-228.8,43.8-316.5,131.5 C953.8,103.2,910,208.7,910,332s43.8,228.8,131.5,316.5C1129.2,736.2,1234.7,780,1358,780s228.8-43.8,316.5-131.5 C1762.2,560.8,1806,455.3,1806,332z M2318,1164c0,34.7-12.7,64.7-38,90s-55.3,38-90,38c-36,0-66-12.7-90-38l-343-342 c-119.3,82.7-252.3,124-399,124c-95.3,0-186.5-18.5-273.5-55.5s-162-87-225-150s-113-138-150-225S654,427.3,654,332 s18.5-186.5,55.5-273.5s87-162,150-225s138-113,225-150S1262.7-372,1358-372s186.5,18.5,273.5,55.5s162,87,225,150s113,138,150,225 S2062,236.7,2062,332c0,146.7-41.3,279.7-124,399l343,343C2305.7,1098.7,2318,1128.7,2318,1164z" /> </svg> </div>
<script> var client = algoliasearch(“R7MRY12BR6”, “{{site.alg_key}}”); var index = client.initIndex('{{site.alg_index}}'); //initialize autocomplete on search input (ID selector must match) autocomplete('#aa-search-input',
{ hint: false, debug: true, autoselect: true, keyboardShortcuts: ['s', '/'] }, { source: autocomplete.sources.hits(index, { hitsPerPage: 12 }), //value to be displayed in input control after user's suggestion selection displayKey: 'my_attribute', //hash of templates used when rendering dataset templates: { //'suggestion' templating function used to render a single suggestion suggestion: function (suggestion) { return '<span>' + suggestion._highlightResult.title.value + '</span><span>'; } }
}).on('autocomplete:selected', function (event, suggestion, dataset) {
location.href = suggestion.url;
}); var nav = responsiveNav(“.nav-collapse”, {
animate: true, transition: 284, label: "MENU",
}); </script>
</div> <div class="blog-masthead--subscribe"> <form action="https://formkeep.com/f/5c4082f5681c" accept-charset="UTF-8" enctype="multipart/form-data" method="POST" target="_blank"><h3>Subscribe <input type="email" id="email-address" name="email" placeholder="Email Address"></h3></form> </div>
</div>
<div class=“featured”>
<div class="featured--title"> <h2><span>FEATURE</span> <span class="emphasize">ARTICLES</span></h2> <hr class="bar"> </div>
</div> {%- assign toppost = site.posts | where_exp:“post”,“post.weight > 8” -%} {%- for post in toppost limit:1 -%}
<div class="featured-zero"> <div class="featured-zero--blog">{{ site.title }}</div> <div class="featured-zero--image" style="background-image: url({{ post.featured-image }});"></div> <div class="featured-zero--post"> <div class="featured-zero--author"> {%- assign author = site.data.experts | where_exp:"expert", "expert.name == post.author" -%} {%- if author.size > 0 -%} <div class="featured-zero--author-pic"> <img src="{{ author[0].image }}" alt=""> <span><a href="{{ author[0].link }}">{{ author[0].name }}</a></span> </div> {%- else -%} <div class="featured-zero--author-pic"> <img src="/uploads/author-placeholder.jpg" alt=""> <span>{{ post.author | markdownify | remove:"<p>" | remove:"</p>"}}</span> </div> {%- endif -%} <div class="featured-zero--author-data"> <p>Tags: {% for tag in post.tags %}<a href=" ">{{ tag }}</a> {% unless forloop.last %}<span class="seperator">/</span> {% endunless %} {% endfor %}</p> <p>{{ post.date | date: '%m/%d' }} | {% capture time %}{{ post.content | reading_time }}{% endcapture %} {{ time }} min read</p> </div> </div> <div class="featured-zero--post-wrap"> <h4>{{ post.title }}<hr class="bar"></h4> <p>{{ post.summary}}</p> <a href="{{ post.url }}" class="button">READ MORE</a> </div> </div> {% endfor %} </div> <div class="featured-other"> {%- for post in toppost offset:1 limit:2-%} <div class="featured-other--wrap {% cycle "odd", "even" %}"> <div class="featured-other--blog">{{ site.title }}</div> <div class="featured-other--image" style="background-image: url({{post.featured-image}}); background-position: center; background-size: cover; "></div> <div class="featured-other--post"> <div class="featured-other--author"> {%- assign author = site.data.experts | where_exp:"expert", "expert.name == post.author" -%} {%- if author.size > 0 -%} <div class="featured-other--author-pic"> <img src="{{ author[0].image }}" alt=""> <span><a href="{{ author[0].link }}">{{ author[0].name }}</a></span> </div> {%- else -%} <div class="featured-other--author-pic"> <img src="/uploads/author-placeholder.jpg" alt=""> <span>{{ post.author | markdownify | remove:"<p>" | remove:"</p>"}}</span> </div> {%- endif -%} <div class="featured-other--author-data"> <p>{{ post.date | date: '%m/%d' }} | {% capture time %}{{ post.content | reading_time }}{% endcapture %} {{ time }} min read</p> </div> </div> <div class="featured-other--post-wrap"> <h4 class="featured-other--title">{{ post.title | truncate: 84 }}<hr class="bar"></h4> <p class="featured-other--summary">{{ post.summary | markdownify | remove:'<p>' | rmeove:'</p>' | truncate: 125}}</p> <a href="{{ post.url }}" class="button">READ MORE</a> </div> </div> </div> {%- endfor -%} </div>
<div class=“recent”>
<div class="featured--title"> <h2><span>RECENT</span> <span class="emphasize">ARTICLES</span></h2> <hr class="bar"> </div> <div class="shadow-wrap"> <div class="main-carousel"> {%- comment -%} This loop will have to be re-written once we can pull in more real posts, for right now we're just looping through the same 3 {%- endcomment -%} {%- assign recent = site.posts -%} {%- for post in recent limit:6 -%} <div class="carousel-cell"> <div class="recent-blog"> <span>{{post.publication}}<span/> </div> <div class="recent-image"> <img src="{{post.featured-image}}"/> </div> <div class="featured-other--author"> {%- assign author = site.data.experts | where_exp:"expert", "expert.name == post.author" -%} {%- if author.size > 0 -%} <div class="featured-other--author-pic"> <img src="{{ author[0].image }}" alt=""> <span><a href="{{ author[0].link }}">{{ author[0].name }}</a></span> </div> {%- else -%} <div class="featured-other--author-pic"> <img src="/uploads/author-placeholder.jpg" alt=""> <span>{{ post.author | markdownify | remove:"<p>" | remove:"</p>"}}</span> </div> {%- endif -%} <div class="featured-other--author-data"> <p>{{ post.date | date: '%m/%d' }} | {% capture time %}{{ post.content | reading_time }}{% endcapture %} {{ time }} min read</p> </div> </div> <h4 class="featured-other--title">{{ post.title | truncate: 84 }}<hr class="bar"></h4> <p class="featured-other--summary">{{ post.summary | markdownify | remove:'<p>' | rmeove:'</p>' | truncate: 125}}</p> <a href="{{ post.url }}" class="button">READ MORE</a> </div> {%- endfor -%} </div> </div> </div> <div class="more"> <div class="featured--title"> <h2><span>MORE</span> <span class="emphasize">NEWS</span></h2> <hr class="bar"> </div> <div class="more-block-wrap"> {%- comment -%} @FIXME We'll need to activate this logic when we've got more posts to work with in the site{%- assign morepost = site.posts | were_exp:"pos","post.weight < 8" -%} {%- endcomment -%} {%- assign more = site.posts | where_exp:"post", "post.weight < 8" -%} {%- for post in more limit:9 -%} <div class="more-block"> <hr class="bar"> <h3 class="more-title">{{ post.title | truncate:85 }}</h3> <div class="more-details"><span class="more-blog">{{ post.publication }}</span><span class="more-time"><svg class="clock-icon" viewBox="0 0 110 110" preserveAspectRatio="xMinYMax meet"><use xlink:href="#clock"></use></svg> {% capture time %}{{ post.content | reading_time }}{% endcapture %} {{ time }} min read </span> </div> </div> {%- endfor -%} </div> </div>