next-theme / hexo-theme-next

🎉 Elegant and powerful theme for Hexo.
https://theme-next.js.org
Other
2.44k stars 431 forks source link

Error encountered when deployed in Gitee #77

Closed pan64271 closed 4 years ago

pan64271 commented 4 years ago

Issue Checklist


Expected behavior

Everything should works well and no error will be encountered.

Actual behavior

I deploy the same blog to github pages and gitee pages.

In https://pan64271.github.io, everything works well.

But when I access https://pan64271.gitee.io, only a blank was shown: error.png

Besides, two errors are shown: velocity.png enable.png

I read this issue #41 and it seems like that Velocity.js is no longer used? (I don't know too much about Web) So, does it mean that I cannot deploy this in gitee?

Steps to reproduce the behavior

  1. Enter https://pan64271.github.io, everything works well.
  2. Enter https://pan64271.gitee.io, a blank page is shown.

Environment Information

Node.js and NPM Information

v14.7.0
6.14.7

Package dependencies Information

+-- hexo@5.0.0
+-- hexo-deployer-git@2.1.0
+-- hexo-excerpt@1.1.6
+-- hexo-generator-archive@1.0.0
+-- hexo-generator-baidu-sitemap@0.1.9
+-- hexo-generator-calendar@0.0.1 (github:theme-next/theme-next-calendar#4de1d42ae3fff83a1aaae5d4f01ffc29444e4222)
+-- hexo-generator-category@1.0.0
+-- hexo-generator-feed@2.2.0
+-- hexo-generator-index@1.0.0
+-- hexo-generator-searchdb@1.3.2
+-- hexo-generator-seo-friendly-sitemap@0.0.25
+-- hexo-generator-tag@1.0.0
+-- hexo-next-utteranc@1.0.0 (github:theme-next/hexo-next-utteranc#f592272a73cb47923f25443709786942f0398a69)
+-- hexo-renderer-ejs@1.0.0
+-- hexo-renderer-kramed@0.1.4
+-- hexo-renderer-stylus@1.1.0
`-- hexo-server@1.0.0

Hexo Configuration

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

# Site
title: pan64271的博客
subtitle: '未经审视的人生,是不值得过的。——苏格拉底'
description: ''
keywords:
author: pan64271
language: zh-CN
timezone: ''

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://pan64271.github.io
root: /
permalink: :year/:month/:day/: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: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

# 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
post_asset_folder: false
relative_link: false
future: true
highlight:
  enable: true
  line_number: true
  auto_detect: false
  tab_replace: ''
  wrap: true
  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: -date

# Category & Tag
default_category: uncategorized
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
## updated_option supports 'mtime', 'date', 'empty'
updated_option: 'mtime'

# 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:
ignore:

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

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
- type: git
  repository: git@github.com:pan64271/pan64271.github.io.git
  branch: master
- type: git
  repository: git@gitee.com:pan64271/pan64271.git
  branch: master

# Activate math-render
math:
  engine: 'katex'
  mathjax:
    # src: custom_mathjax_source
    config:
      # MathJax config

# Search 
search:
  path: search.xml
  field: post
  format: html
  limit: 10000

# Auto generate sitmap
sitemap:
  path: sitemap.xml
baidusitemap:
  path: baidusitemap.xml

# RSS Feed
feed:
  type: atom
  path: atom.xml
  limit: 20
  hub:
  content:
  content_limit: 140
  content_limit_delim: " "
  order_by: -date
  icon: icon.png

# Excerpt the posts in homepage
excerpt:
  depth: 3
  excerpt_excludes: []
  more_excludes: []
  hideWholePostExcerpts: true

NexT Configuration

creative_commons:
  license: by-nc-sa
  sidebar: false
  post: true
  language:

# Schemes
#scheme: Muse
#scheme: Mist
#scheme: Pisces
scheme: Gemini

# Dark Mode
darkmode: true

menu:
  home: / || fa fa-home
  about: /about/ || fa fa-user
  tags: /tags/ || fa fa-tags
  categories: /categories/ || fa fa-th
  archives: /archives/ || fa fa-archive
  #schedule: /schedule/ || fa fa-calendar
  #sitemap: /sitemap.xml || fa fa-sitemap
  #commonweal: /404/ || fa fa-heartbeat

avatar:
  # Replace the default image and set the url here.
  url: /images/avatar_Work.jpg
  # If true, the avatar will be dispalyed in circle.
  rounded: false
  # If true, the avatar will be rotated with the cursor.
  rotated: false

social:
  GitHub: https://github.com/pan64271 || fab fa-github
  E-Mail: mailto:pan64271@qq.com || fa fa-envelope
  #Weibo: https://weibo.com/yourname || fab fa-weibo
  #Google: https://plus.google.com/yourname || fab fa-google
  #Twitter: https://twitter.com/yourname || fab fa-twitter
  #FB Page: https://www.facebook.com/yourname || fab fa-facebook
  #StackOverflow: https://stackoverflow.com/yourname || fab fa-stack-overflow
  #YouTube: https://youtube.com/yourname || fab fa-youtube
  #Instagram: https://instagram.com/yourname || fab fa-instagram
  #Skype: skype:yourname?call|chat || fab fa-skype

links:
  华南师大搬砖技术社区: https://0xffff.one/
  ziwen`s blog: http://www.ziwenblog.xyz/

follow_me:
  #Twitter: https://twitter.com/username || fab fa-twitter
  #Telegram: https://t.me/channel_name || fab fa-telegram
  #WeChat: /images/wechat_channel.jpg || fab fa-weixin
  RSS: /atom.xml || fa fa-rss

codeblock:
  # Code Highlight theme
  # All available themes: https://theme-next.js.org/highlight/
  theme:
    light: default
    dark: tomorrow-night
  prism:
    light: prism
    dark: prism-dark
  # Add copy button on codeblock
  copy_button:
    enable: true
    # Available values: default | flat | mac
    style:

back2top:
  enable: true
  # Back to top in sidebar.
  sidebar: false
  # Scroll percent label in b2t button.
  scrollpercent: true

math:
  # Default (true) will load mathjax / katex script on demand.
  # That is it only render those page which has `mathjax: true` in Front-matter.
  # If you set it to false, it will load mathjax / katex srcipt EVERY PAGE.
  per_page: true

  # hexo-renderer-pandoc (or hexo-renderer-kramed) required for full MathJax support.
  mathjax:
    enable: true

  # hexo-renderer-markdown-it-plus (or hexo-renderer-markdown-it with markdown-it-katex plugin) required for full Katex support.
  katex:
    enable: true
    # See: https://github.com/KaTeX/KaTeX/tree/master/contrib/copy-tex
    copy_tex: false

busuanzi_count:
  enable: true
  total_visitors: true
  total_visitors_icon: fa fa-user
  total_views: true
  total_views_icon: fa fa-eye
  post_views: true
  post_views_icon: fa fa-eye

local_search:
  enable: true
  # If auto, trigger search by changing input.
  # If manual, trigger search by pressing enter key or search button.
  trigger: auto
  # Show top n results per article, show all results by setting to -1
  top_n_per_article: 1
  # Unescape html strings to the readable one.
  unescape: false
  # Preload the search data when the page loads.
  preload: false

Other Information

welcome[bot] commented 4 years ago

Thanks for opening this issue, maintainers will get back to you as soon as possible!

stevenjoezhang commented 4 years ago

In https://pan64271.github.io, everything works well.

But when I access https://pan64271.gitee.io, only a blank was shown:

Your website can be displayed normally on github pages, then this means that the problem has nothing to do with NexT. You should open a ticket at gitee.io, not here. Thanks.

stevenjoezhang commented 4 years ago
截屏2020-08-04 上午10 22 23
pan64271 commented 4 years ago

In https://pan64271.github.io, everything works well.

But when I access https://pan64271.gitee.io, only a blank was shown:

Your website can be displayed normally on github pages, then this means that the problem has nothing to do with NexT. You should open a ticket at gitee.io, not here. Thanks.

Hmmmm... It seems a little weird. You're right. This is gitee's problem. Sorry for taking up your time.

stevenjoezhang commented 4 years ago

It's okay, this should be a caching issue, and it is difficult to determine the cause of the problem. This may be related to Gitee's server, the CDN provider, your internet service provider, etc. Sometimes it even takes several hours to clear the cache.

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.