Initial website
This commit is contained in:
8
themes/hueman/layout/widget/archive.ejs
Normal file
8
themes/hueman/layout/widget/archive.ejs
Normal 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>
|
||||
<% } %>
|
10
themes/hueman/layout/widget/catalog.ejs
Normal file
10
themes/hueman/layout/widget/catalog.ejs
Normal 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>
|
||||
<% } %>
|
8
themes/hueman/layout/widget/category.ejs
Normal file
8
themes/hueman/layout/widget/category.ejs
Normal 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>
|
||||
<% } %>
|
14
themes/hueman/layout/widget/links.ejs
Normal file
14
themes/hueman/layout/widget/links.ejs
Normal 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>
|
||||
<% } %>
|
23
themes/hueman/layout/widget/recent_posts.ejs
Normal file
23
themes/hueman/layout/widget/recent_posts.ejs
Normal 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>
|
||||
<% } %>
|
25
themes/hueman/layout/widget/sticky_posts.ejs
Normal file
25
themes/hueman/layout/widget/sticky_posts.ejs
Normal 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>
|
||||
<% } %>
|
8
themes/hueman/layout/widget/tag.ejs
Normal file
8
themes/hueman/layout/widget/tag.ejs
Normal 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>
|
||||
<% } %>
|
8
themes/hueman/layout/widget/tagcloud.ejs
Normal file
8
themes/hueman/layout/widget/tagcloud.ejs
Normal 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>
|
||||
<% } %>
|
Reference in New Issue
Block a user