1.修复代码块显示异常
修改步骤很简单,打开博客根目录下的_config.yml配置文件(不是主题的),然后将其中配置highlight配置项修改成以下样子:
# 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: true
relative_link: false
future: true
syntax_highlighter: prismjs
highlight:
enable: false
prismjs:
enable: true
preprocess: true
line_number: true
tab_replace: ' '
theme: 'tomorrow'
关键修改点:将highlight关掉,syntax_highlighter设置成prismjs,prismjs要选择主题(我当时没选择折腾了半天)
把博客的logo换成了svg
之前使用的是jpg,虽然猛地一看察觉不出什么变化,但仔细看还是很难受,现在换成了svg格式,更清晰,体积更小。