hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.24k stars 4.83k forks source link

No Post Listed #4991

Closed dimaslanjaka closed 1 year ago

dimaslanjaka commented 2 years ago

Check List

Please check followings before submitting a new issue.

Behavior

just clone from hexojs/site, modify config, copy post from hexojs/hexo-theme-unit-test (source, scaffold)

How to reproduce?

Is the problem still there under "Safe mode"?

YES

Environment & Settings

Node.js & npm version(node -v && npm -v)

v16.13.0
8.12.1

Your site _config.yml (Optional)

# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: "WMI"
subtitle: "Website Management Indonesia"
description: Website Management Indonesia is a blog about scripts, tips and tricks, games, software. Covering php, javascript, jquery, mysql, seo, e-commerce and others.
keywords: the legend of neverland, genshin impact, games, how to, tips and tricks, php, javascript, jquery, mysql, seo, e-commerce
language:
  - en
  - id
timezone: "Asia/Jakarta"

# https://github.com/wzpan/hexo-generator-search
# https://github.com/next-theme/hexo-generator-searchdb
search:
  path: search.xml
  field: post
  content: true
  format: html
  #template: ./template/search.xml

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://www.webmanajemen.com/
root: /
permalink: :title.html #:title/
permalink_defaults:
pretty_urls:
  trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
  trailing_html: true # Set to false to remove trailing '.html' from permalinks

# Directory
source_dir: source
public_dir: docs
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
# https://hexo.io/docs/configuration.html
skip_render:
  - "**/node_modules"
  - "yandex_*"
  - "ahrefs_*"
  - "glx_*"
  - "Midi"
  - "Midi/**/*"
  - "backend"
  - "backend/**/*"
  # https://github.com/hexojs/hexo/issues/1797
  - "*.json"
  - "**/*.json"
  - "_posts/**/*.json"
  - "_posts/**/*.js"
  - "_posts/**/*.css"
  - "_posts/The Legend Of Neverland/Midi/readme.md"
  - "**/__test__/**"
  - "_posts/Chimeraland/**/*.html"

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link:
  enable: true # Open external links in new tab
  field: site # Apply to the whole site
  exclude: ""
filename_case: 0
render_drafts: false

# https://hexo.io/docs/asset-folders
post_asset_folder: true

relative_link: false
future: true
# https://github.com/hexojs/hexo-util
# https://hexo.io/docs/syntax-highlight.html
highlight:
  enable: true
  line_number: false
  auto_detect: false
  tab_replace: "  " # replace tabs with 2 spaces
  wrap: false
  hljs: false
prismjs:
  enable: false
  preprocess: true
  line_number: true
  tab_replace: ""

# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
  path: ""
  per_page: 10
  order_by: -updated #updated | date

# Category & Tag

default_category: uncategorized
default_tag:
category_map:
tag_map:

# Metadata elements
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true

# 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

## Use post's date for updated date unless set in front-matter
updated_option: false

# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page

# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
include:
exclude:
  - "**/.git"
  - "**/MIDI.js/**"
  - "**/{readme,README,changelog,CHANGELOG}.md"
  - "**/Test/**"
  - "**/guzzle/**"
  - "**/exclude/**"
  - "**/hexo-post-parser/**"
ignore:

# https://www.npmjs.com/package/hexo-server
server:
  port: 4000
  log: false
  ip: 0.0.0.0
  #host: adsense.webmanajemen.com
  #proxy: adsense.webmanajemen.com
  compress: false
  cache: false
  header: false
  serveStatic:
    extensions:
      - html

# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/

theme: butterfly

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
  type: git
  repo: https://github.com/dimaslanjaka/dimaslanjaka.github.io
  branch: master
  message: "Git Deployment: {{ now('YYYY-MM-DD HH:mm:ss') }}"

author:
  name: "Dimas Lanjaka"
  link: "https://www.webmanajemen.com/"
  image:
    url: https://res.cloudinary.com/dimaslanjaka/image/fetch/https://imgdb.net/images/3600.jpg
    width: 1944 # <= 600
    height: 2592 # >= 60

social_links:
  github: https://github.com/dimaslanjaka
  youtube: https://youtube.com/p/L3n4r0x

# Feed Atom https://github.com/hexojs/hexo-generator-feed
feed:
  # include contents in feeds
  content: true
  # Generate both atom and rss2 feeds
  type:
    - atom
    - rss2
  path:
    - atom.xml
    - rss.xml

# Sitemap
sitemap:
  path: sitemap.xml

# https://github.com/sergeyzwezdin/hexo-related-posts#Configuration
related_posts:
  enabled: true
  enable_env_name: prod
  filter_threshold: 0.3
  related_count: 3
  weight:
    title: 0.05
    description: 0.05
    keywords: 0.01
    tags: 0.005
    categories: 0.005
    text: 1
  stemmers:
    - en
    - ru
    - id
  reserved:
    - asp.net
    - vs.net
    - ado.net
    - .net
    - games
    - js
    - ts

# https://github.com/CHENXCHEN/hexo-renderer-markdown-it-plus.git
markdown_it_plus:
  highlight: true
  html: true
  xhtmlOut: true
  breaks: true
  langPrefix:
  linkify: true
  typographer:
  #quotes: “”‘’
  pre_class: highlight
  plugins:
    - plugin:
        # https://www.npmjs.com/package/markdown-it-attrs
        name: markdown-it-attrs
        enable: true
        options:
          leftDelimiter: "{"
          rightDelimiter: "}"
          allowedAttributes: [] # empty array = all attributes are allowed

Hexo and Plugin version(npm ls --depth 0)

hexo-wmi@0.0.0 /media/dimaslanjaka/DATA/Repositories/gh-pages
├── eslint@8.16.0
├── gulp@4.0.2
├── hexo-generator-archive@1.0.0
├── hexo-generator-category@1.0.0
├── hexo-generator-index@2.0.0
├── hexo-generator-tag@1.0.0
├── hexo-github-card@1.0.5
├── hexo-pdf@1.1.1
├── hexo-renderer-marked@5.0.0
├── hexo-renderer-stylus@2.1.0
├── hexo-server@3.0.0
├── hexo-theme-butterfly@4.3.0-b2 -> ./themes/butterfly
├── hexo@6.2.0
├── npm-run-all@4.1.5
├── prettier@2.6.2
├── static-blog-generator@2.0.7-beta-1867bdc5a3
└── ts-node@10.8.0

Your package.json package.json

{
  "name": "hexo-wmi",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "build": "hexo generate",
    "clean": "hexo clean",
    "deploy": "hexo deploy",
    "server": "hexo server",
    "list": "npx syncpack list-mismatches",
    "preinstall": "node preinstall.js",
    "reinstall": "npm-run-all -s reinstall:**",
    "reinstall:hpp": "npm install git+https://github.com/dimaslanjaka/hexo-post-parser.git -D --ignore-scripts --ignore-platforms",
    "reinstall:sbg": "npm install git+https://github.com/dimaslanjaka/static-blog-generator.git#dev -D --ignore-scripts --ignore-platforms",
    "reinstall:ps": "npm install git+https://github.com/dimaslanjaka/persistent-cache.git#improve2 -D --ignore-scripts --ignore-platforms",
    "reinstall:sf": "npm install git+https://github.com/dimaslanjaka/safelink.git -D --ignore-scripts --ignore-platforms",
    "reinstall:rebuild": "npm rebuild",
    "reinstall:audit": "npm audit fix"
  },
  "hexo": {
    "version": "6.2.0"
  },
  "dependencies": {
    "hexo": "^6.2.0",
    "hexo-generator-archive": "^1.0.0",
    "hexo-generator-category": "^1.0.0",
    "hexo-generator-index": "^2.0.0",
    "hexo-generator-tag": "^1.0.0",
    "hexo-github-card": "^1.0.5",
    "hexo-pdf": "^1.1.1",
    "hexo-renderer-marked": "^5.0.0",
    "hexo-renderer-stylus": "^2.1.0",
    "hexo-server": "^3.0.0",
    "hexo-theme-butterfly": "file:./themes/butterfly"
  },
  "devDependencies": {
    "eslint": "^8.16.0",
    "gulp": "^4.0.2",
    "npm-run-all": "^4.1.5",
    "prettier": "2.6.2",
    "static-blog-generator": "https://github.com/dimaslanjaka/static-blog-generator/raw/dev/release/development.tgz",
    "ts-node": "^10.8.0"
  }
}

Others

image

dimaslanjaka commented 2 years ago

on workflow is working https://github.com/dimaslanjaka/dimaslanjaka.github.io/runs/6736061745?check_suite_focus=true

how to fix this ?

i've tried:

dimaslanjaka commented 2 years ago

temporarily fixed using manual indexer :

stevenjoezhang commented 1 year ago

I cannot reproduce the bug 😢

截屏2022-11-22 11 41 40
dimaslanjaka commented 1 year ago

I cannot reproduce the bug 😢

截屏2022-11-22 11 41 40

i fixed it by renaming the project folder and remove node_modules. i think this bug caused by some cache system that hexo used.