-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not generating index.html #1
Comments
Have you added these lines into _config.yml ? index_generator:
per_page: 5
order_by: -date Hexo has updated before and I haven't tested this plugin with the newest Hexo yet, if your config is right but the problem still exists, please let me know. Here is a full config example: # Site
title: ABC's Blog
subtitle:
description:
author: ABC
language:
- en
- zh-cn
timezone: UTC
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://abc.github.io/
root: /
permalink: :lang/:slug/
permalink_defaults:
lang: en
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :lang/:title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: true
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace:
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# 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: YYYY-MM-DD
time_format: HH:mm:ss
# Pagination
## Set per_page to 0 to disable pagination
per_page: 4
pagination_dir: page
index_generator:
per_page: 5
order_by: -date
archive_generator:
per_page: 3
yearly: true
monthly: true
daily: false
category_generator:
per_page: 5
tag_generator:
per_page: 5
enable_index_page: false
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: tranquilpeak
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: And the logs:
|
after downgrading node from v14 to v12,this problem was solved. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After running 'hexo generate' no en/index.html or sk/index.html appeared. Could you provide some example of how to use your library?
File system
_config.yml
`
title: Pluto
subtitle:
description:
author:
language:
timezone:
url: http://yoursite.com
root: /
permalink: :lang/
new_post_name: :lang/
i18n_dir: :lang
skip_render:
- '**/*.js'
theme: pluto
deploy:
type:
node_sass:
outputStyle: nested
precision: 5
sourceComments: false
`
The text was updated successfully, but these errors were encountered: