Comments (6)
我估计是你hexo根目录的_config.yml
没有开启archive,你粘贴一下你的_config.yml
文件代码(hexo根目录,不是主题根目录。),我帮你看看。
from landscape-plus.
@xiangming 嗯,好的,麻烦您了~
下面是代码:
==========================
# Hexo Configuration
## Docs: http://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: " php101"
subtitle: ~if you fail to plan,you plan to fail~
description:
author: tudouya
email: [email protected]
language: zh-CN
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://www.php101.cn
root: /
permalink: :year/:month/:day/:title/
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
permalink_defaults:
# Directory
source_dir: source
public_dir: public
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
auto_spacing: false # Add spaces between asian characters and western characters
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
highlight:
enable: true
line_number: true
tab_replace:
# Category & Tag
default_category: 默认分类
category_map:
tag_map:
# Archives
## 2: Enable pagination
## 1: Disable pagination
## 0: Fully Disable
archive: 2
category: 2
tag: 2
# Server
## Hexo uses Connect as a server
## You can customize the logger format as defined in
## http://www.senchalabs.org/connect/logger.html
port: 4000
server_ip: 0.0.0.0
logger: false
logger_format:
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: MMM D YYYY
time_format: H:mm:ss
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Disqus
disqus_shortname:
# Extensions
## Plugins: https://github.com/hexojs/hexo/wiki/Plugins
## Themes: https://github.com/hexojs/hexo/wiki/Themes
theme: RagingCat
exclude_generator:
# Deployment
## Docs: http://hexo.io/docs/deployment.html
deploy:
type: github
repo: [email protected]:tudouya/tudouya.github.io.git
branch: master
from landscape-plus.
@xiangming 代码贴上去貌似自动解析了,您看这样看您方便不
from landscape-plus.
@tudouya 你需要修改这一部分的设置:
# Archives
## 2: Enable pagination
## 1: Disable pagination
## 0: Fully Disable
archive: 1
category: 1
tag: 1
这里的注释和实际效果其实不吻合,你必须设置为1,而不是2。
配置文件修改好以后,你可能还需要hexo clean
一下,然后重新hexo g
生成。
from landscape-plus.
@xiangming 行了,谢谢~~
from landscape-plus.
一起学习,多交流~
from landscape-plus.
Related Issues (20)
- http://libs.useso.com/js/font-awesome/4.2.0/fonts/fontawesome-webfont加载特别慢 HOT 4
- 返回顶部按钮有问题
- 正文中英文引号占位过大,可能是字体问题?
- add links false
- 更换评论模块 HOT 4
- 请问一下如何将主页的文章显示摘要,而不是显示整篇文章。 HOT 5
- 更新留言为畅言。添加分类,并支持两级目录
- 关于jquery静态资源引用的建议
- 建议在_config.yml中添加备案配置
- 怎么增加一个分类的? HOT 8
- It is a recommend Markdown edit for Hexo !
- 请问怎么折叠文章 HOT 4
- Comments 跳转到bookmark.com HOT 2
- 演示打不开了 HOT 1
- 首页第一篇文章的图片链接地址问题 HOT 1
- 红色
- 怎么去掉作者名的地步填充? HOT 1
- favicon 怎么设置啊? HOT 1
- 这个项目还会有更新吗?
- 如何在首页文章列表显示阅读更多,如何置顶,还有首页文章列表按照的创建时间或者更新时间排序 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 landscape-plus.