// Font size $font-size-base = (hexo-config('font.enable') and hexo-config('font.global.size') is a 'unit') ? unit(hexo-config('font.global.size'), em) : .875em; $font-size-smallest = .75em; $font-size-smaller = .8125em; $font-size-small = .875em; $font-size-medium = 1em; $font-size-large = 1.125em; $font-size-larger = 1.25em; $font-size-largest = 1.5em;
主题_config.yml
1 2 3 4 5 6 7 8 9 10 11 12
font: enable: true # Uri of fonts host. E.g. //fonts.googleapis.com (Default) # 亲测这个可用,如果不可用,自己搜索 [Google 字体 国内镜像],找个能用的就行 host: https://fonts.cat.net # Global font settings used on <body> element. # 全局字体,应用在 body 元素上 global: external: true family: Lato size: 16 #csdn上就是16看着舒服多了
苹果电脑中的字体: 华文细黑:STHeiti Light [STXihei] 华文黑体:STHeiti 华文楷体:STKaiti 华文宋体:STSong 华文仿宋:STFangsong 丽黑 Pro:LiHei Pro Medium 丽宋 Pro:LiSong Pro Light 标楷体:BiauKai 苹果丽中黑:Apple LiGothic Medium 苹果丽细宋:Apple LiSung Light
字体大小不变的问题
1 2 3
hello, I have changed: source/css/_variables/custom.styl $font-size-base = 20px; and when $ hexo s the font is bigger, but $ hexo -g d , it not worked, how can i do that?thanks