Initial website

This commit is contained in:
Deon George
2018-09-03 17:41:16 +10:00
commit fd1bd20c85
238 changed files with 20819 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<% if (site.posts.length) { %>
<div class="widget-wrap widget-list">
<h3 class="widget-title"><%= __('sidebar.archives') %></h3>
<div class="widget">
<%- list_archives() %>
</div>
</div>
<% } %>

View File

@@ -0,0 +1,10 @@
<% if (typeof(post) != 'undefined' && post.toc) { %>
<div class="widget-wrap widget-list">
<h3 class="widget-title"><%= __('sidebar.catalogue') %></h3>
<div class="widget">
<div id="toc" class="toc-article">
<%- toc(post.content) %>
</div>
</div>
</div>
<% } %>

View File

@@ -0,0 +1,8 @@
<% if (site.categories.length) { %>
<div class="widget-wrap widget-list">
<h3 class="widget-title"><%= __('sidebar.categories') %></h3>
<div class="widget">
<%- list_categories() %>
</div>
</div>
<% } %>

View File

@@ -0,0 +1,14 @@
<% if (site.posts.length) { %>
<div class="widget-wrap widget-list">
<h3 class="widget-title"><%= __('sidebar.links') %></h3>
<div class="widget">
<ul>
<% for (var i in theme.miscellaneous.links) { %>
<li>
<a href="<%- theme.miscellaneous.links[i] %>"><%= i %></a>
</li>
<% } %>
</ul>
</div>
</div>
<% } %>

View File

@@ -0,0 +1,23 @@
<% if (site.posts.length) { %>
<div class="widget-wrap">
<h3 class="widget-title"><%= __('sidebar.recents') %></h3>
<div class="widget">
<ul id="recent-post" class="<%= (theme.customize.thumbnail?'':'no-thumbnail') %>">
<% site.posts.sort('date', -1).limit(5).each(function(post) { %>
<li>
<% if (theme.customize.thumbnail === true) { %>
<div class="item-thumbnail">
<%- partial('common/thumbnail.ejs', {post: post}) %>
</div>
<% } %>
<div class="item-inner">
<p class="item-category"><%- list_categories(post.categories, {show_count: false, depth:2, class: 'article-category', style: 'none', separator: '<i class="icon fa fa-angle-right"></i>'}) %></p>
<p class="item-title"><a href="<%- url_for((post.link?post.link:post.path)) %>" class="title"><%= post.title %></a></p>
<p class="item-date"><time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><%= date(post.date) %></time></p>
</div>
</li>
<% }) %>
</ul>
</div>
</div>
<% } %>

View File

@@ -0,0 +1,25 @@
<% if (site.posts.length) { %>
<div class="widget-wrap">
<h3 class="widget-title"><%= __('sidebar.sticky') %></h3>
<div class="widget">
<ul id="recent-post" class="<%= (theme.customize.thumbnail?'':'no-thumbnail') %>">
<% site.posts.filter(function(post) { return post.sticky; }).sort('sticky', -1).limit(5).each(function(post) { %>
<% if (!post.hidden) { %>
<li>
<% if (theme.customize.thumbnail === true) { %>
<div class="item-thumbnail">
<%- partial('common/thumbnail.ejs', {post: post}) %>
</div>
<% } %>
<div class="item-inner">
<p class="item-category"><%- list_categories(post.categories, {show_count: false, depth:2, class: 'article-category', style: 'none', separator: '<i class="icon fa fa-angle-right"></i>'}) %></p>
<p class="item-title"><a href="<%- url_for((post.link?post.link:post.path)) %>" class="title"><%= post.title %></a></p>
<p class="item-date"><time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><%= date(post.date) %></time></p>
</div>
</li>
<% } %>
<% }) %>
</ul>
</div>
</div>
<% } %>

View File

@@ -0,0 +1,8 @@
<% if (site.tags.length) { %>
<div class="widget-wrap widget-list">
<h3 class="widget-title"><%= __('sidebar.tags') %></h3>
<div class="widget">
<%- list_tags() %>
</div>
</div>
<% } %>

View File

@@ -0,0 +1,8 @@
<% if (site.tags.length) { %>
<div class="widget-wrap widget-float">
<h3 class="widget-title"><%= __('sidebar.tag_cloud') %></h3>
<div class="widget tagcloud">
<%- tagcloud() %>
</div>
</div>
<% } %>