美化记录

前言

cactus确实是一个好主题,但是对一些地方对国人来说还是不够完善,去网上抄了一些东西美化了下内容,以下做个记录。


中文字体修改

此处借鉴的是这个修改版,主要涉及三个文件的修改:

  1. layout/_partial/head.ejs
    <%- css('css/style') %><!-- rss -->之间的内容替换为:
<%- css('css/style') %>
    <link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap" rel="stylesheet">
    <link href="https://cdn.staticfile.org/firacode/6.2.0/fira_code.min.css" rel="stylesheet">
    <!-- rss -->

2.source/css/_variables.styl
完全替换为

$font-family-body = "Fira Code", 'Noto Sans SC', sans-serif, monospace
$font-family-mono = "Fira Code", 'Noto Sans SC', sans-serif, monospace
$font-family-tt = "Inconsolata", monospace
$font-size = 16px
$line-height = 1.725
$page-width = 0rem + (hexo-config("page_width") || 39)
// Logo
$logo-width = 0px + (hexo-config("logo.width") || 0)
$logo-height = 0px + (hexo-config("logo.height") || 0)
// Colors
$colors = hexo-config("colorscheme") || "dark"

3.‎source/css/_partial/comments.styl
完全替换为:

margin-top: 2rem
margin-bottom: 2rem

#valine_container
.vwrap
.vheader .vinput, .vedit #veditor
font-weight: 500
font-family: "Fira Code", 'Noto Sans SC', sans-serif, monospace

备注

使用字体:
[FiraCode@2](https://github.com/tonsky/FiraCode) 
[Noto Sans SC](https://fonts.google.com/specimen/Noto+Sans+SC)

最新更新于 2023.07.31