mirror of https://gitlab.com/curben/blog
fix(layout): move 'Newer'/'Older' out of <a>
This commit is contained in:
parent
5a2994cff1
commit
005c3419d4
|
@ -1,26 +1,26 @@
|
|||
<% if (post.prev || post.next) { %>
|
||||
<nav id="article-nav" class="article-nav">
|
||||
<% if (post.prev) { %>
|
||||
<a href="<%- url_for(post.prev.path) %>" id="article-nav-newer" class="article-nav-link-wrap newer">
|
||||
<strong class="article-nav-caption"><%= __('newer') %></strong>
|
||||
<span class="article-nav-link-wrap newer">
|
||||
<% if (post.prev) { %>
|
||||
<strong><%= __('newer') %></strong>
|
||||
<a href="<%- url_for(post.prev.path) %>">
|
||||
<div class="article-nav-title">
|
||||
<% if (post.prev.title) { %>
|
||||
<%= post.prev.title %>
|
||||
<% } else { %>
|
||||
(no title)
|
||||
<% } %>
|
||||
<% if (post.prev.title) { %>
|
||||
<%= post.prev.title %>
|
||||
<% } else { %>
|
||||
(no title)
|
||||
<% } %>
|
||||
</div>
|
||||
</a>
|
||||
<% } else { %>
|
||||
<span id="article-nav-newer" class="article-nav-link-wrap newer"></span>
|
||||
<% } %>
|
||||
<% if (post.next) { %>
|
||||
<a href="<%- url_for(post.next.path) %>" id="article-nav-older" class="article-nav-link-wrap older">
|
||||
<strong class="article-nav-caption"><%= __('older') %></strong>
|
||||
<% } %>
|
||||
</span>
|
||||
<span class="article-nav-link-wrap older">
|
||||
<% if (post.next) { %>
|
||||
<strong><%= __('older') %></strong>
|
||||
<a href="<%- url_for(post.next.path) %>">
|
||||
<div class="article-nav-title"><%= post.next.title %></div>
|
||||
</a>
|
||||
<% } else { %>
|
||||
<span id="article-nav-older" class="article-nav-link-wrap older"></span>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</span>
|
||||
</nav>
|
||||
<% } %>
|
||||
|
|
Loading…
Reference in New Issue