Comments (7)
Создай папку /source/categories, в ней нужно создать файл index.md с таким содержанием:
title: Categories
layout: categories
comments: false
---
from hexo-theme-pure.
from hexo-theme-pure.
Странно, файла 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.
I can not understand ,can you writer by English
from hexo-theme-pure.
_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.
Reload theme files & enter command:
cd /path/to/hexo.site
hexo clean
from hexo-theme-pure.
Theme updated! Fixed some bugs.
from hexo-theme-pure.
Related Issues (20)
- 请问怎么修改字体以及代码块的样式? HOT 1
- hexo更新到5.4了,计划重新写个主题,有没有同学支持? HOT 1
- 本地预览是没问题的,但是部署到githubpPage就会丢失了样式 HOT 1
- 下一页按钮出现代码
- 还有人在维护吗 HOT 1
- 取消显示侧边栏 toc 目录导航的序号
- 首页导航修改后多出menu. HOT 1
- gitalk评论会显示403的问题解决 HOT 2
- 部分js加载时间超长且导致页面加载缓慢的问题解决方案
- 如何在文章中插入图片,使用图床 HOT 1
- valine 评论无法使用
- 如何跳转站外链接 HOT 1
- 你好公式\\无法换行怎么解决
- 如何自己添加需要的icon
- 你好,文章表格过宽时,右边内容被覆盖,建议增加表格横向滚动条,谢谢
- 小白不会搞(求助 HOT 2
- 添加多个categories的时候,标签页面显示的浏览器地址不是根据categories平铺的而是叠加的 HOT 1
- 黑夜模式
- 分类模块下的文章排序很乱,既不按日期来也不按标题标号来,有方法解决吗?
- 一直好用突然报错Please make sure you have the correct access rights and the repository exists. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-pure.