Giter VIP home page Giter VIP logo

Comments (7)

 avatar commented on June 12, 2024

Создай папку /source/categories, в ней нужно создать файл index.md с таким содержанием:

title: Categories
layout: categories
comments: false
---

from hexo-theme-pure.

zerocc2014 avatar zerocc2014 commented on June 12, 2024

image
image

from hexo-theme-pure.

 avatar commented on June 12, 2024

Странно, файла thumbnail.ejs не должно быть то есть, автор его не положил в репозиторий
Выполните команду: hexo clean
Вот часть кода:
recent_posts.ejs

<% if(theme.config.thumbnail == true) { %>
            <div class="item-thumbnail">
              <%- partial('common/thumbnail.ejs', {post: post}) %> // Вот причина
            </div>
            <% } %>

В _config.yml поставьте

thumbnail: false

from hexo-theme-pure.

zerocc2014 avatar zerocc2014 commented on June 12, 2024

I can not understand ,can you writer by English

from hexo-theme-pure.

zerocc2014 avatar zerocc2014 commented on June 12, 2024

_config.yml:

config

config:
layout: main-center # 布局方式 main-left main-center main-right
toc: true # 是否开启文章章节目录导航
menu_highlight: false # 是否开启当前菜单高亮显示
thumbnail: false # enable posts thumbnail, options: true, false
excerpt_link: Read More
fancybox: false

Pagination

pagination:
number: false
prev:
alwayShow: true
next:
alwayShow: true

And
recent_posts.ejs:
<% if (site.posts.length){ %>

<%= __('widget.recent_posts') %>

    <% site.posts.sort('date', -1).limit(5).each(function(post){ %>
  • <% if(theme.config.thumbnail == true) { %>
    <%- partial('common/thumbnail.ejs', {post: post}) %>
    <% } %>

    <%- list_categories(post.categories, {show_count: false, depth:2, class: 'category', style: 'none', separator: ''}) %>

    <%= post.title || '(no title)' %>

    <%= date(post.date) %>

  • <% }) %>
<% } %>

but still Error

from hexo-theme-pure.

 avatar commented on June 12, 2024

Reload theme files & enter command:

cd /path/to/hexo.site  
hexo clean

from hexo-theme-pure.

cofess avatar cofess commented on June 12, 2024

Theme updated! Fixed some bugs.

from hexo-theme-pure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.