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,8 +1,9 @@
|
||||||
<% if (post.prev || post.next) { %>
|
<% if (post.prev || post.next) { %>
|
||||||
<nav id="article-nav" class="article-nav">
|
<nav id="article-nav" class="article-nav">
|
||||||
|
<span class="article-nav-link-wrap newer">
|
||||||
<% if (post.prev) { %>
|
<% if (post.prev) { %>
|
||||||
<a href="<%- url_for(post.prev.path) %>" id="article-nav-newer" class="article-nav-link-wrap newer">
|
<strong><%= __('newer') %></strong>
|
||||||
<strong class="article-nav-caption"><%= __('newer') %></strong>
|
<a href="<%- url_for(post.prev.path) %>">
|
||||||
<div class="article-nav-title">
|
<div class="article-nav-title">
|
||||||
<% if (post.prev.title) { %>
|
<% if (post.prev.title) { %>
|
||||||
<%= post.prev.title %>
|
<%= post.prev.title %>
|
||||||
|
@ -11,16 +12,15 @@
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<% } else { %>
|
|
||||||
<span id="article-nav-newer" class="article-nav-link-wrap newer"></span>
|
|
||||||
<% } %>
|
<% } %>
|
||||||
|
</span>
|
||||||
|
<span class="article-nav-link-wrap older">
|
||||||
<% if (post.next) { %>
|
<% if (post.next) { %>
|
||||||
<a href="<%- url_for(post.next.path) %>" id="article-nav-older" class="article-nav-link-wrap older">
|
<strong><%= __('older') %></strong>
|
||||||
<strong class="article-nav-caption"><%= __('older') %></strong>
|
<a href="<%- url_for(post.next.path) %>">
|
||||||
<div class="article-nav-title"><%= post.next.title %></div>
|
<div class="article-nav-title"><%= post.next.title %></div>
|
||||||
</a>
|
</a>
|
||||||
<% } else { %>
|
|
||||||
<span id="article-nav-older" class="article-nav-link-wrap older"></span>
|
|
||||||
<% } %>
|
<% } %>
|
||||||
|
</span>
|
||||||
</nav>
|
</nav>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
Loading…
Reference in New Issue