Skip to content
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

Open
katarina-simnova opened this issue May 24, 2017 · 2 comments
Open

Not generating index.html #1

katarina-simnova opened this issue May 24, 2017 · 2 comments

Comments

@katarina-simnova
Copy link

katarina-simnova commented May 24, 2017

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
screen shot 2017-05-24 at 3 18 25 pm

_config.yml
`
title: Pluto
subtitle:
description:
author:
language:

  • en
  • sk
    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
`

@zyzyz
Copy link
Owner

zyzyz commented May 28, 2017

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:

The directory:
2017528-234757

And the logs:

λ hexo g                                                                                              
INFO  Start processing                                                                                 
INFO  Files loaded in 1.32 min                                                                         
INFO  Generated: en/index.html                                                                         
INFO  Generated: zh-cn/index.html                                                                      
INFO  Generated: en/archives/2016/index.html                                                           
INFO  Generated: en/page/2/index.html                                                                  
INFO  Generated: zh-cn/page/2/index.html                                                               
INFO  Generated: zh-cn/categories/中文/index.html                                                        
INFO  Generated: zh-cn/tags/Chinese/index.html                                                         
INFO  Generated: zh-cn/all-tags/index.html                                                             
INFO  Generated: zh-cn/Test-6/index.html                                                               
INFO  Generated: zh-cn/all-archives/index.html                                                         
INFO  Generated: en/all-categories/index.html                                                          
INFO  Generated: en/all-tags/index.html                                                                
INFO  Generated: en/all-archives/index.html                                                            
INFO  Generated: zh-cn/Test-5/index.html                                                               
INFO  Generated: zh-cn/all-categories/index.html                                                       
INFO  Generated: zh-cn/Test-4/index.html                                                               
INFO  Generated: zh-cn/Test-1/index.html                                                               
INFO  Generated: zh-cn/archives/2016/index.html                                                        
INFO  Generated: zh-cn/Test-2/index.html                                                               
INFO  Generated: zh-cn/Test-3/index.html                                                               
INFO  Generated: en/Test-9/index.html                                                                  
INFO  Generated: en/Test-4/index.html                                                                  
INFO  Generated: en/Test-5/index.html                                                                  
INFO  Generated: en/Test-3/index.html                                                                  
INFO  Generated: en/Test-7/index.html                                                                  
INFO  Generated: en/Test-1/index.html                                                                  
INFO  Generated: en/Test-2/index.html                                                                  
INFO  Generated: en/Test/index.html                                                                    
INFO  Generated: en/page/3/index.html                                                                  
INFO  Generated: en/Hello-World/index.html                                                             
INFO  Generated: en/Test-8/index.html                                                                  
INFO  Generated: en/Test-6/index.html                                                                  
INFO  Generated: zh-cn/archives/index.html                                                             
INFO  Generated: en/archives/index.html                                                                
INFO  Generated: assets/images/fancybox_loading.gif                                                    
INFO  Generated: en/archives/page/2/index.html                                                         
INFO  Generated: en/archives/2016/page/2/index.html                                                    
INFO  Generated: zh-cn/archives/2016/page/2/index.html                                                 
INFO  Generated: zh-cn/archives/page/2/index.html                                                      
INFO  Generated: assets/images/fancybox_overlay.png                                                    
INFO  Generated: assets/fonts/fontawesome-webfont.woff2                                                
INFO  Generated: assets/images/blank.gif                                                               
INFO  Generated: en/archives/page/3/index.html                                                         
INFO  Generated: assets/images/fancybox_sprite.png                                                     
INFO  Generated: assets/images/fancybox_loading@2x.gif                                                 
INFO  Generated: assets/images/fancybox_sprite@2x.png                                                  
INFO  Generated: en/archives/2016/page/3/index.html                                                    
INFO  Generated: en/archives/page/4/index.html                                                         
INFO  Generated: en/archives/2016/page/4/index.html                                                    
INFO  Generated: zh-cn/archives/2016/page/3/index.html                                                 
INFO  Generated: assets/fonts/fontawesome-webfont.eot                                                  
INFO  Generated: zh-cn/archives/page/3/index.html                                                      
INFO  Generated: zh-cn/Hello-World/index.html                                                          
INFO  Generated: en/archives/2016/05/index.html                                                        
INFO  Generated: zh-cn/archives/2016/05/index.html                                                     
INFO  Generated: assets/css/jquery.fancybox.css                                                        
INFO  Generated: assets/fonts/fontawesome-webfont.svg                                                  
INFO  Generated: zh-cn/categories/中文/欢迎界面/index.html                                                   
INFO  Generated: assets/js/jquery.fancybox-thumbs.js                                                   
INFO  Generated: assets/css/jquery.fancybox-thumbs.css                                                 
INFO  Generated: assets/css/font-awesome.css                                                           
INFO  Generated: assets/css/style-gpvaqamfulglxllxmb6kbw0hlnr2ltyvcycaxmhxoj1k2f0gl3gcoallthlh.min.css 
INFO  Generated: assets/css/tranquilpeak.css                                                           
INFO  Generated: assets/css/style.css                                                                  
INFO  Generated: assets/js/tranquilpeak.js                                                             
INFO  Generated: assets/js/jquery.fancybox.js                                                          
INFO  Generated: assets/fonts/FontAwesome.otf                                                          
INFO  Generated: assets/js/jquery.js                                                                   
INFO  Generated: assets/images/avatar.jpg                                                              
INFO  Generated: assets/fonts/fontawesome-webfont.woff                                                 
INFO  Generated: assets/fonts/fontawesome-webfont.ttf                                                  
INFO  Generated: zh-cn/archives/2016/05/page/2/index.html                                              
INFO  Generated: en/archives/2016/05/page/2/index.html                                                 
INFO  Generated: en/archives/2016/05/page/4/index.html                                                 
INFO  Generated: assets/js/scrip-m3tbgwdagejqcwodrvejcaenp6rtwfsyufmnkz6q8fuwfmjrc4cofncgwg6w.min.js   
INFO  Generated: assets/images/cover_ori.jpg                                                           
INFO  Generated: zh-cn/archives/2016/05/page/3/index.html                                              
INFO  Generated: en/archives/2016/05/page/3/index.html                                                 
INFO  Generated: assets/js/script.js                                                                   
INFO  79 files generated in 1.11 s                                                                     

@dennisleung
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants