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,5 @@
<% if (post.authorId) { %>
<div class="article-author">
<a href="<%- config.root %><%- 'author/' + post.authorId %>"><%= post.author.name %></a>
</div>
<% } %>

View File

@@ -0,0 +1,7 @@
<% if (post.date) { %>
<div class="<%= class_name %>">
<a href="<%- url_for(post.path) %>" class="<%= class_name %>">
<time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><%= date(post.date, date_format) %></time>
</a>
</div>
<% } %>

View File

@@ -0,0 +1,9 @@
<% if (post.photos && post.photos.length) { %>
<div class="article-gallery">
<% post.photos.forEach(function(photo, i) { %>
<a class="gallery-item" href="<%- url_for(photo) %>" rel="gallery_<%= post._id %>">
<img src="<%- url_for(photo) %>" itemprop="image" />
</a>
<% }) %>
</div>
<% } %>

View File

@@ -0,0 +1,24 @@
<% if (post.prev || post.next) { %>
<nav id="article-nav">
<% if (post.prev) { %>
<a href="<%- url_for(post.prev.path) %>" id="article-nav-newer" class="article-nav-link-wrap">
<strong class="article-nav-caption"><%= __('sidebar.newer') %></strong>
<p class="article-nav-title">
<% if (post.prev.title) { %>
<%= post.prev.title %>
<% } else { %>
(no title)
<% } %>
</p>
<i class="icon fa fa-chevron-right" id="icon-chevron-right"></i>
</a>
<% } %>
<% if (post.next) { %>
<a href="<%- url_for(post.next.path) %>" id="article-nav-older" class="article-nav-link-wrap">
<strong class="article-nav-caption"><%= __('sidebar.older') %></strong>
<p class="article-nav-title"><%= post.next.title %></p>
<i class="icon fa fa-chevron-left" id="icon-chevron-left"></i>
</a>
<% } %>
</nav>
<% } %>

View File

@@ -0,0 +1,6 @@
<% if (post.tags && post.tags.length) { %>
<div class="article-tag">
<i class="fa fa-tag"></i>
<%- list_tags(post.tags, { show_count: false, style: 'link' }) %>
</div>
<% } %>

View File

@@ -0,0 +1,15 @@
<% if (post.link) { %>
<h1 itemprop="name">
<a class="<%= class_name %>" href="<%- url_for(post.link) %>" target="_blank" itemprop="url"><%= post.title %></a>
</h1>
<% } else if (post.title) { %>
<% if (typeof(linkable) !== 'undefined' && linkable) { %>
<h1 class="<%= class_name %>" itemprop="name">
<a href="<%- url_for(post.path) %>"><%= post.title %></a>
</h1>
<% } else { %>
<h1 class="<%= class_name %>" itemprop="name">
<%= post.title %>
</h1>
<% } %>
<% } %>