hexo/themes/Klise/layout/post.ejs

24 lines
803 B
Plaintext
Raw Normal View History

2023-09-25 15:58:56 +08:00
<div class="wrapper post">
<main class="page-content" aria-label="Content">
<header class="header">
<% if(page.tags.length > 0){ %>
<div class="tags">
<% (page.tags || []).forEach(function(item) { %><a href="<%= url_for(item.path) %>" class="tag"># <%= item.name %></a><% }); %>
</div>
<% } %>
<h1 class="header-title" itemprop="headline"><%=page.title%></h1>
<div class="post-meta">
<time><%- date(page.date, 'MMM DD, YYYY') %></time>
<span itemprop="author">
<span itemprop="name"><%=config.author%></span>
</span>
</div>
</header>
<div class="page-content"><%-page.content%></div>
<%-partial('partials/pagination')%>
</main>
</div>