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

1.5.6 打开侧边栏时,控制台报错 #730

Open
3 of 6 tasks
fairytale110 opened this issue Jul 10, 2019 · 0 comments
Open
3 of 6 tasks

1.5.6 打开侧边栏时,控制台报错 #730

fairytale110 opened this issue Jul 10, 2019 · 0 comments

Comments

@fairytale110
Copy link

I certify that I have first consulted (check all with "x")

我确认我已经查看了 (使用 "x" 选择)


I'm submitting a (check one with "x")

我正在申请 (使用 "x" 选择)

  • bug report | 反馈一个 bug
  • feature request | 申请添加新的特性或功能
  • support request | 请求技术支持

image

最新版 1.5.6,部署和本地 在Chrome(Win10, 75.0.3770.100(正式版本) (64 位))都会有如题的现象,但是没发现界面有什么异样,主题除了配置文件其它的都没动过。下面是我的

hexo 配置文件_config.yml:

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

# Site
title: 智灵的博客
subtitle: 
description: 
keywords: 
author: 智灵
language: zh-CN 
timezone: Asia/Shanghai 

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://nicesky.tech
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:

# 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: true # Open external links in new tab
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: 
  
# 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:

# 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: 9
pagination_dir: page

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

# Deployment
## Docs: https://hexo.io/docs/deployment.html
## repo: git@github.com:your_username/your_username.github.io.git 
deploy: 
  type: git
  repo: git@github.com:fairytale110/fairytale110.github.io.git
  branch: master

search:
    path: search.xml
    field: all

主题配置文件_config.yml:

# ---------------------------------------------------------------
# Site Information Settings
# ---------------------------------------------------------------

# Head info
head: 
    favicon: "/img/favicon.png"
    high_res_favicon: "/img/favicon.png"
    apple_touch_icon: "/img/favicon.png"
    keywords: 
    site_verification: 
        google: 
        baidu: 

    # Enable generate structured-data as JSON+LD for SEO or not.
    #    Set as 'false' if it cause some wrong when `hexo g`.
    structured_data: false

# Jump Links Settings
url: 
    rss: 
    daily_pic: "#"
    logo: "#"


# ---------------------------------------------------------------
# Style Settings
# ---------------------------------------------------------------

# Schemes
scheme: Paradox
#scheme: Isolation

# UI & UX: slogan, color, effect
uiux: 
    slogan: 
    - "问君能有几多愁"
    - "As a boy with a girl"
    theme_color: "#F8BBD0"	
    theme_sub_color: "#F06292"
    hyperlink_color: "#F06292"
    button_color: "#F06292"
    android_chrome_color: "#C2185B"
    nprogress_color: "#C2185B"
    nprogress_buffer: "800"

# JS Effect Switches
js_effect:
    fade: true
    smoothscroll: false

# Reading experience
reading:
    entry_excerpt: 80

# Thumbnail Settings
thumbnail:
    purecolor: #"#FCE4EC"
    random_amount: 19

# Background Settings
# bing available parameter:
#    new | color= | type=
#        color available value: black, blue, brown, green, multi, orange, pink, purple, red, white, yellow
#        type available value: A (animal), C (culture), N (nature), S (space), T (travel)
background:
    #purecolor: "#F5F5F5"
    #bgimg: "/img/bg.png"
    bing: 
        enable: true
        parameter: type = N

# Images Settings
img:
    logo: "/img/logo.png"
    avatar: "/img/avatar.png"
    daily_pic: "/img/daily_pic.png"
    sidebar_header: "/img/sidebar_header.png"
    random_thumbnail: "/img/random/material-"
    footer_image: 
        #upyun_logo:
            #link: "https://www.upyun.com/"
            #src: "/img/upyun_logo.svg"

# Custom Fonts
#    family: the font-family which will be used in the theme
#    use: uri of fonts host.
#        Available value: google | baomitu | ustc | custom | catnet
#        - When you set as 'custom', you should fill in the value of 'custom_font_host', which should be a mirror of google fonts.
#        - If you have setup your custom font-family, don't forget to add style tag with @font-face or link.tag with font css
#          to /source/data/head.yml as custom code, to load custom font files.
fonts: 
    family: Roboto, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif
    use: google
    custom_font_host: 

# Card Elevation Level
card_elevation: 4

# Copyright
# Specify the date when the site was setup.
#    For example, if you set it as 2015, then footer will show '© 2015 - 2017'
copyright_since: 2018

# Footer Text
# You can specify the text you want to show in footer, HTML tag is supported.
#   For example, you can setup ICP license number as:
#       '<a href="http://www.miitbeian.gov.cn" rel="nofollow">某ICP备xxxxxxxx号-x</a>'
footer_text: ''

# Qrcode for redirect at other device
#    use: choose which method to generate the qrcode for each posts.
#        Available value: plugin | online
#            - When use "plugin", you need to install the hexo-helper-qrcode.
#            - When use "online", the qrcode will be generated by 'pan.baidu.com' in China.
qrcode:
    enable: false
    use: plugin

# Code highlight
# You can only enable one of them to avoid issues.
# Also you need to disable highlight option in hexo's _config.yml.
#
#    Prettify
#        theme: # Available value in /source/css/prettify/[theme].min.css
prettify:
    enable: false
    theme: "github-v2"

#    Hanabi (https://github.com/egoist/hanabi)
#        line_number: [true/false] # Show line number for code block
#        includeDefaultColors: [true/false] # Use default hanabi colors
#        customColors: This value accept a string or am array to setting for hanabi colors.
#                    - If `includeDefaultColors` is true, this will append colors to the color pool
#                    - If `includeDefaultColors` is false, this will instead default color pool
hanabi:
    enable: false
    line_number: true
    includeDefaultColors: true
    customColors: 

# Post License
# You can specify the text you want to show in the end of your posts and pages, HTML tag is supported.
#   For example, you can setup a CC license as:
#       'This blog is under a <a href="/creativecommons.html" target="_blank">CC BY-NC-SA 3.0 Unported License</a>'
# You can also use Front-Matter `license` to override this setting.
license:  

# Gallery Panel
# You must activate Formspree before using
gallery:
    panel_show: false
    left_show: false
    left_title: Introduction
    left_info: This is a Example.
    right_show: false
    right_title: Get in touch

# ---------------------------------------------------------------
# Menu Settings
# ---------------------------------------------------------------

# TOC Button

toc:
#   use: choose whether the line_number of toc will show or not.
#       Available value of "linenumber": true | false
    linenumber: true

# SNS Menu
sns:
    email: fairytale110@qq.com
    facebook: #"https://www.facebook.com/facebook"
    twitter: #"https://twitter.com/twitter"
    googleplus: #"https://www.google.com/"
    weibo: 
    instagram: 
    tumblr: 
    github: "https://github.com/fairytale110"
    linkedin: 
    zhihu: 
    bilibili: 
    telegram: 
    v2ex: 

# SNS Share Switch
sns_share:
    twitter: false
    facebook: false
    googleplus: false
    weibo: true
    linkedin: false
    qq: true
    telegram: false

# Sidebar Customize
sidebar:
    dropdown:
        Email Me: 
            link: "mailto:fairytale110@qq.com"
            icon: email
    homepage: 
        use: true
        icon: #home
        divider: false
    archives: 
        use: true
        icon: inbox
        divider: false
    categories: 
        use: true
        icon: chrome_reader_mode
        divider: false
    pages:
        关于我:
            link: "/about"
            icon: #person
            divider: false
        标签云:
            link: "/tags"
            icon: #person
            divider: false

    article_num: 
        use: true
        divider: false
    footer: 
        divider: true
        theme: true
        support: false
        feedback: false
        material: false


# ---------------------------------------------------------------
# Integrated Services
# ---------------------------------------------------------------

# Comment Systems
# Available value of "use":
#     disqus | disqus_click | changyan | livere | gitment | gitalk | valine
# If you want to use gitment or gitalk,you should get the client_id and client_secret form https://github.com/settings/applications/new
# If you want to use valine,you should get the app_id and app_key form https://leancloud.cn ,more setting please see https://valine.js.org
comment: 
    use:  livere
    shortname: # duoshuo or disqus shortname
    changyan_appid: 
    changyan_conf: 
    changyan_thread_key_type: path
    livere_data_uid:  MTAyMC8zNTQxNS8xMTk1MQ==
    gitment_repo:   # git repo of the hexo
    gitment_owner:  # git repo's owner
    gitment_client_id:  # github app client id 
    gitment_client_secret :  # github app client secret 
    valine_leancloud_appId:  # leancloud application app id
    valine_leancloud_appKey:  # leancloud application app key
    valine_notify: false # valine mail notify (true/false) https://github.com/xCss/Valine/wiki
    valine_verify: false # valine verify code (true/false)
    valine_pageSize: 10 # comment list page size
    valine_avatar: identicon # gravatar style https://valine.js.org/#/avatar
    valine_lang: zh-cn # i18n
    valine_placeholder: Just go go # valine comment input placeholder(like: Please leave your footprints )
    valine_guest_info: nick,mail,link #valine comment header info
    gitalk_repo: # git repo of the hexo
    gitalk_owner: # git repo's owner
    gitalk_client_id: # github app client id 
    gitalk_client_secret: # github app client secret
    wildfire_database_provider: firebase # firebase or wilddog
    wildfire_wilddog_site_id:
    wildfire_firebase_api_key:
    wildfire_firebase_auth_domain:
    wildfire_firebase_database_url:
    wildfire_firebase_project_id:
    wildfire_firebase_storage_bucket:
    wildfire_firebase_messaging_sender_id:
    wildfire_theme: light # light or dark
    wildfire_locale: en # en or zh-CN
# Search Systems
# Available value: 
#     swiftype | google | local
search: 
    use: local
    swiftype_key: 

# Analytics Systems
# Available value:
#     baidu | google | cnzz
analytics: 
    google_site_id: 
    baidu_site_id: 
    cnzz_site_id: 

# Leancloud Views
leancloud: 
    enable: false
    app_id: #你的 app_id
    app_key: #你的 app_key
    av_core_mini: "https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"

# Busuanzi 不蒜子 Views
busuanzi: 
    enable: false
    all_site_uv: false
    post_pv: false
    busuanzi_pure_mini_js: "https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"

# Files Vendors
# Set a CDN for the files src you want to customize. The url should with protocol.
# Default(empty) will load the files from the origin server.
vendors: 
# MaterialCDN
#   You can load theme unique files from your private cdn or oss.
#   The new src will have the base domain you configured below.
#   For example
#	https://cdn.jsdelivr.net/npm/hexo-material-cdn@1.5.2/source/css/style.min.css
#       materialcdn: https://cdn.jsdelivr.net/npm/hexo-material@1.4.0/source
    materialcdn: https://cdn.jsdelivr.net/npm/hexo-material-cdn@1.5.2/source

# Third party library
#   You can load these files from public cdn.
#   For example https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js
#       jquery: https://cdn.bootcss.com/jquery/2.2.1/jquery.js
    # jQuery 2.2.0
    jquery: https://cdn.bootcss.com/jquery/2.2.0/jquery.js
    # nprogress 0.2.0
    nprogress: 
    # FontAwesome 4.5.0 https://cdn.bootcss.com/font-awesome/4.5.0/css/font-awesome.min.css
    fontawesome: https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css
    # MathJax 2.7.0-2.7.1
    mathjax: https://cdn.bootcss.com/mathjax/2.7.1/MathJax.js
    # Prettify r298 (only prettify.js)
    prettify: https://cdn.bootcss.com/prettify/r298/prettify.js
    # Material Icons 3.0.1
    material_icons: https://cdn.bootcss.com/material-design-icons/3.0.1/iconfont/material-icons.min.css

# Post wordcount display settings
# Dependencies: https://github.com/willin/hexo-wordcount
# post_wordcount:
#   item_text: true
#   wordcount: true
#   min2read: true
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

1 participant