mirror of
https://github.com/tangkunyin/hexo-theme-jsimple.git
synced 2026-01-25 14:56:28 +00:00
remove custom-sticky by use hexo-generator-index its default ✅ Closes: https://fluid-dev.github.io/hexo-fluid-docs/guide/#%E6%96%87%E7%AB%A0%E6%8E%92%E5%BA%8F
29 lines
1021 B
Plaintext
29 lines
1021 B
Plaintext
<div class="page-title">
|
|
<ul>
|
|
<li class="<%= pagination == 2 ? 'active' : '' %>">
|
|
<a href="/" data-name="<%= __('recent_posts') %>"><%= __('recent_posts') %></a>
|
|
</li>
|
|
<% for (let menuKey in theme.menu){ %>
|
|
<li class="<%= (page.category == menuKey) ? 'active' : '' %>">
|
|
<a href="/categories/<%= theme.menu[menuKey] %>" data-name="<%= menuKey %>"><%= menuKey %></a>
|
|
</li>
|
|
<% } %>
|
|
<%- partial('_widget/search-bar') %>
|
|
</ul>
|
|
</div>
|
|
<div class="main-inner">
|
|
<!-- default get newest -->
|
|
<% page.posts.sort('date', theme.home_page_sort).limit(theme.home_article_shown).each(function(post){ %>
|
|
<%- partial('_widget/category-items', {post: post}) %>
|
|
<% }) %>
|
|
</div>
|
|
<% if (page.total > 1){ %>
|
|
<div id="btn-pager">
|
|
<% var prev_text = __('prev');var next_text = __('next') %>
|
|
<%- paginator({
|
|
prev_text: prev_text,
|
|
next_text: next_text
|
|
}) %>
|
|
</div>
|
|
<% } %>
|
|
<%- partial('_widget/ads/adSense') %> |