Initial pages site

This commit is contained in:
Deon George
2018-03-07 15:58:54 +11:00
parent 12239ff76e
commit 9cee828d19
69 changed files with 25440 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<% if (site.posts.length){ %>
<h5><%= __('ARCHIVES') %></h5>
<div class="widget">
<%- list_archives({show_count: config.show_count, type: config.archive_type}) %>
</div>
<% } %>

View File

@@ -0,0 +1,7 @@
<!-- Categories -->
<% if (site.categories.length){ %>
<h5><%= __('categories') %></h3>
<div class="widget">
<%- list_categories({show_count: theme.show_count}) %>
</div>
<% } %>

View File

@@ -0,0 +1,14 @@
<!-- 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>
<% }%>

View File

@@ -0,0 +1,10 @@
<!-- Friends Blog -->
<% if(config.friends) { %>
<h5>FRIENDS</h5>
<ul class="list-inline">
<% config.friends.forEach(function(friend){ %>
<li><a href="<%= friend.href %>" target="_blank"><%= friend.title %></a></li>
<% }); %>
</ul>
<% }%>

View File

@@ -0,0 +1,12 @@
<% if (site.posts.length){ %>
<h5><%= __('RECENT POSTS') %></h3>
<div class="widget">
<ul>
<% site.posts.sort('date', -1).limit(5).each(function(post){ %>
<li>
<a href="<%- url_for(post.path) %>"><%= post.title || '(no title)' %></a>
</li>
<% }) %>
</ul>
</div>
<% } %>

View File

@@ -0,0 +1,93 @@
<!-- Short About -->
<section class="visible-md visible-lg">
<h5><a href="<%= config.root %>about/">ABOUT ME</a></h5>
<div class="short-about">
<% if(config['sidebar-avatar']) { %>
<img id = "avatar_pic" src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
<% } %>
<% if(config['sidebar-about-description']) { %>
<p><%= config['sidebar-about-description'] %></p>
<% }%>
<!-- SNS Link -->
<ul class="list-inline">
<% if (config.RSS) { %>
<li>
<a href="<%= config.root + 'feed.xml' %>">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-rss fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<% } %>
<% if (config.twitter_username) { %>
<li>
<a target="_blank" href="https://twitter.com/<%= config.twitter_username %>">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-twitter fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<% } %>
<% if (config.zhihu_username) { %>
<li>
<a target="_blank" href="https://www.zhihu.com/people/<%= config.zhihu_username %>">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-stack-1x fa-inverse">知</i>
</span>
</a>
</li>
<% } %>
<% if (config.weibo_username) { %>
<li>
<a target="_blank" href="http://weibo.com/<%= config.weibo_username %>">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-weibo fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<% } %>
<% if (config.facebook_username) { %>
<li>
<a target="_blank" href="https://www.facebook.com/<%= config.facebook_username %>">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-facebook fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<% } %>
<% if (config.github_username) { %>
<li>
<a target="_blank" href="https://github.com/<%= config.github_username %>">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-github fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<% } %>
<% if (config.linkedin_username) { %>
<li>
<a target="_blank" href="https://www.linkedin.com/in/<%= config.linkedin_username %>">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-linkedin fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<% } %>
</ul>
</div>
</section>