100 lines
3.4 KiB
Plaintext
100 lines
3.4 KiB
Plaintext
---
|
|
layout: layout
|
|
---
|
|
<!-- Main Content -->
|
|
<div class="container">
|
|
<div class="row">
|
|
<!-- NO SIDEBAR -->
|
|
<% if(config.sidebar == false) { %>
|
|
<!-- Post Container -->
|
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 post-container">
|
|
<%- page.content || body %>
|
|
</div>
|
|
<!-- Sidebar Container -->
|
|
<div class="
|
|
col-lg-8 col-lg-offset-2
|
|
col-md-10 col-md-offset-1
|
|
sidebar-container">
|
|
|
|
<!-- Featured Tags -->
|
|
<% if(config['featured-tags']) { %>
|
|
<section>
|
|
<!-- no hr -->
|
|
<h5><a href="<%= config.root %>tags/">FEATURED TAGS</a></h5>
|
|
<div class="tags">
|
|
<% site.tags.map(function(tag){ %>
|
|
<% if(tag.length > config['featured-condition-size']) { %>
|
|
<a href="<%= config.root %>tags/#<%= tag.name %>" title="<%= tag.name %>" rel="<%= tag.length %>"><%= tag.name %></a>
|
|
<% } %>
|
|
<% }) %>
|
|
</div>
|
|
</section>
|
|
<% }%>
|
|
|
|
|
|
<!-- Friends Blog -->
|
|
<% if(config.friends) { %>
|
|
<hr>
|
|
<h5>FRIENDS</h5>
|
|
<ul class="list-inline">
|
|
|
|
<% config.friends.forEach(function(friend){ %>
|
|
<li><a href="<%= friend.href %>"><%= friend.title %></a></li>
|
|
<% }); %>
|
|
</ul>
|
|
<% }%>
|
|
</div>
|
|
|
|
<!-- USE SIDEBAR -->
|
|
<%} else { %>
|
|
|
|
<!-- Post Container -->
|
|
<div class="
|
|
col-lg-8 col-lg-offset-1
|
|
col-md-8 col-md-offset-1
|
|
col-sm-12
|
|
col-xs-12
|
|
post-container
|
|
">
|
|
|
|
<%- page.content || body %>
|
|
|
|
<!-- Comments -->
|
|
<% if(page.comments) { %>
|
|
<hr>
|
|
|
|
<% if(config['disqus_username']) { %>
|
|
<!-- disqus start -->
|
|
<div class="comment">
|
|
<div id="disqus_thread" class="disqus-thread"></div>
|
|
</div>
|
|
<!-- disqus end -->
|
|
<% } %>
|
|
|
|
<% if(config['disqus_username']) { %>
|
|
<!-- disqus -->
|
|
<script type="text/javascript">
|
|
/* * * CONFIGURATION VARIABLES * * */
|
|
var disqus_shortname = "<%= config['disqus_username'] %>";
|
|
var disqus_identifier = "<%= page.permalink %>";
|
|
var disqus_url = "<%= page.permalink %>";
|
|
|
|
(function() {
|
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
})();
|
|
|
|
|
|
</script>
|
|
<!-- disqus end -->
|
|
<% } %>
|
|
<% } %>
|
|
</div>
|
|
|
|
<%- partial('_partial/sidebar') %>
|
|
|
|
<%} %>
|
|
</div>
|
|
</div>
|