Closed SummerLiu95 closed 7 years ago
请检查主题文件夹下是否已经将 _config.example.yml
是否重命名为 _config.yml
@neoFelhz 这一步骤不是在安装使用主题时就已经进行的操作吗
请提供你的配置文件
@EYHN 你说站点配置文件吗
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: 刘志宇的新天地
subtitle: 六只鱼
description: Nice to meet you. Welcome to my Blog!
author: 刘志宇
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: http://yoursite.com
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:
# 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: 10
pagination_dir: page
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
#theme: hiero
#theme: next
#theme:landscape
theme: material
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo: https://github.com/BarryLiu1995/BarryLiu1995.github.io.git
branch: master
应该是主题配置文件
@EYHN 好的,如图所示,我是按照文档使用material的步骤 _config.yml
# Site Information Settings
# ---------------------------------------------------------------
# Head info
head:
favicon: "/img/mylogo.png"
high_res_favicon: "/img/mylogo.png"
apple_touch_icon: "/img/mylogo.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: true
# Jump Links Settings
url:
rss:
daily_pic: "#"
logo: "#"
# ---------------------------------------------------------------
# Style Settings
# ---------------------------------------------------------------
# Schemes
scheme: Paradox
#scheme: Isolation
# UI & UX: slogan, color, effect
uiux:
slogan: "欢迎来到我的博客!"
theme_color: "#0097A7"
theme_sub_color: "#00838F"
hyperlink_color: "#00838F"
button_color: "#757575"
android_chrome_color: "#0097A7"
nprogress_color: "#29d"
nprogress_buffer: "800"
# JS Effect Switches
js_effect:
fade: true
smoothscroll: false
# Reading experience
reading:
entry_excerpt: 80
# Thumbnail Settings
thumbnail:
purecolor:
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: "https://ooo.0o0.ooo/2017/06/24/594dd4f30cd5d.png"
bing:
enable: false
parameter:
# Images Settings
img:
logo: "/img/avater.png"
avatar: "/img/favicon.ico"
daily_pic: "https://ooo.0o0.ooo/2017/06/24/594e1809da017.jpg"
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
# host: uri of fonts host.
# Available value of "host": google | baomitu | ustc | custom
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: 6
# 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:
# Qrcode for redirect at other device
# use: choose which method to generate the qrcode for each posts.
# Available value of "use": 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: true
use: plugin
# ---------------------------------------------------------------
# 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: ssdf90771@gmail.com
facebook: "https://www.facebook.com/profile.php?id=100009525188433"
twitter: "https://twitter.com/jk241995"
googleplus:
weibo: "http://weibo.com/178997821liuzhiyu/profile?rightmod=1&wvr=6&mod=personinfo"
instagram: "https://www.instagram.com/pogbaliu/"
tumblr:
github: "https://github.com/BarryLiu1995"
linkedin:
zhihu: "https://www.zhihu.com/people/liu-zhi-yu-20/activities"
bilibili:
telegram:
# SNS Share Switch
sns_share:
twitter: true
facebook: true
googleplus: false
weibo: true
linkedin: false
qq: false
telegram: false
# Sidebar Customize
sidebar:
dropdown:
Email Me:
link: "#"
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
article_num:
use: false
divider: false
footer:
divider: true
theme: false
support: false
feedback: false
material: false
# ---------------------------------------------------------------
# Integrated Services
# ---------------------------------------------------------------
# MaterialCDN
# When you set 'use' as true, the needed css, js, font file will have a new src.
# The new src will have the base domain you configured in 'base'.
materialcdn:
use:
base:
# Comment Systems
# Available value of "use":
# disqus | disqus_click | changyan | 163gentie
comment:
use: 163gentie
shortname: # duoshuo or disqus shortname
changyan_appid:
changyan_conf:
changyan_thread_key_type: path
gentie_productKey: b0937fd818564dffaf1142bf042320df
# Search Systems
# Available value:
# swiftype | google | local
search:
use: google
swiftype_key:
# Analytics Systems
# Available value:
# baidu | google | cnzz
analytics:
use:
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"```
兄弟你的标签云加在哪里了。。。 还有请贴出完整的报错信息 你提供的报错信息是无用的。
实在不好意思,因为加了标签云编译不通过,我就删了。现在我贴出hexo g命令后的错误信息,还有配置信息,文档的关于添加标签云的说明
修改为
pages:
关于:
link: "/about"
icon: person
divider: false
标签:
link: ........
你好,已经解决这个问题了。 但是有一个问题也想请教你,就是标签云页面的字体太淡,太细了,以至于换个背景图就完全看不见,这个怎么解决?
@EYHN 不好意思,上条评论忘记@了
这是设计问题,你可以自己写样式覆盖。 不会写的话,也没办法了。
@EYHN 你好,我就是找不到标签页面对应的CSS文件,请问你知道那个对应的CSS文件在哪个位置吗
另外加个css文件,覆盖原来的样式,岂不美滋滋。
@EYHN
I prefer inline <style>
, hhh.
I certify that I have first consulted (check all with "x")
我确认我已经查看了 (使用 "x" 选择)
I'm submitting a (check one with "x")
我正在申请 (使用 "x" 选择)
在使用material主题时根据文档添加在sidebar添加{标签云}页面,而about页面则正确添加,可是在hexo g命令后就出现以下错误
Unhandled rejection TypeError: E:\Learn\Hexo\themes\material\layout\layout.ejs:3
Unhandled rejection TypeError: E:\Learn\Hexo\themes\material\layout\layout.ejs:44
再看了其他issue后还不是很明白问题出在哪以及如何解决?