Initial website
This commit is contained in:
5
themes/hueman/layout/common/post/author.ejs
Normal file
5
themes/hueman/layout/common/post/author.ejs
Normal file
@@ -0,0 +1,5 @@
|
||||
<% if (post.authorId) { %>
|
||||
<div class="article-author">
|
||||
<a href="<%- config.root %><%- 'author/' + post.authorId %>"><%= post.author.name %></a>
|
||||
</div>
|
||||
<% } %>
|
7
themes/hueman/layout/common/post/date.ejs
Normal file
7
themes/hueman/layout/common/post/date.ejs
Normal 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>
|
||||
<% } %>
|
9
themes/hueman/layout/common/post/gallery.ejs
Normal file
9
themes/hueman/layout/common/post/gallery.ejs
Normal 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>
|
||||
<% } %>
|
24
themes/hueman/layout/common/post/nav.ejs
Normal file
24
themes/hueman/layout/common/post/nav.ejs
Normal 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>
|
||||
<% } %>
|
6
themes/hueman/layout/common/post/tag.ejs
Normal file
6
themes/hueman/layout/common/post/tag.ejs
Normal 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>
|
||||
<% } %>
|
15
themes/hueman/layout/common/post/title.ejs
Normal file
15
themes/hueman/layout/common/post/title.ejs
Normal 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>
|
||||
<% } %>
|
||||
<% } %>
|
Reference in New Issue
Block a user