正在修改 font-title 的 blogdown webst
Modifying font-title of blogdown webst
大家好,这是我关于博客的第一个问题。我想对博客标题做一个基本的更改。
博客来自这个link:
这是 .toml 文件:
baseurl = "/"
languageCode = "en-us"
title = "This is the Title I want Change"
theme = "hugo-xmag"
googleAnalytics = ""
disqusShortname = ""
ignoreFiles = ["\.Rmd$", "_files$", "_cache$"]
preserveTaxonomyNames = true
footnotereturnlinkcontents = "↩"
hasCJKLanguage = true
enableEmoji = true
paginate = 6
[permalinks]
post = "/post/:year/:month/:day/:slug/"
[[menu.main]]
name = "Home"
url = "/"
weight = 1
[[menu.main]]
name = "About"
url = "/about/"
weight = 2
[[menu.main]]
name = "Categories"
url = "/categories/"
weight = 3
[[menu.main]]
name = "Tags"
url = "/tags/"
weight = 4
[[menu.main]]
name = "Subscribe"
url = "/index.xml"
[params]
description = "A website built through Hugo and blogdown."
summary_length = 300
github_edit = "https://github.com/yihui/hugo-xmag/edit/master/exampleSite/content/"
footer = "© [Yihui Xie](https://yihui.name) 2017 | [Github](https://github.com/yihui) | [Twitter](https://twitter.com/xieyihui)"
[params.text]
back = "← Back to Home"
edit = "Edit this page →"
truncated = "…"
网站上说 Magazine title in Blackletter (ℭ ℜ) 但我在 .css 文件中找不到与此类字体相关的任何内容。这是我要更改的字体。
请帮忙?
有想法就好了。
谢谢
一辉使用一些正则表达式黑魔法将标题转换为 Math bold Fraktur。因此,它不受 CSS 字体设置的控制。
你可以找到它here:
将其更改为另一种字体。将行修改为
{{ else }}<div class="yourfancytitle"> {{ .Site.Title }} </div>
然后在您的 CSS 中更改 font-family:
.yourfancytitle{
font-family: Candara;
}
大家好,这是我关于博客的第一个问题。我想对博客标题做一个基本的更改。
博客来自这个link:
这是 .toml 文件:
baseurl = "/"
languageCode = "en-us"
title = "This is the Title I want Change"
theme = "hugo-xmag"
googleAnalytics = ""
disqusShortname = ""
ignoreFiles = ["\.Rmd$", "_files$", "_cache$"]
preserveTaxonomyNames = true
footnotereturnlinkcontents = "↩"
hasCJKLanguage = true
enableEmoji = true
paginate = 6
[permalinks]
post = "/post/:year/:month/:day/:slug/"
[[menu.main]]
name = "Home"
url = "/"
weight = 1
[[menu.main]]
name = "About"
url = "/about/"
weight = 2
[[menu.main]]
name = "Categories"
url = "/categories/"
weight = 3
[[menu.main]]
name = "Tags"
url = "/tags/"
weight = 4
[[menu.main]]
name = "Subscribe"
url = "/index.xml"
[params]
description = "A website built through Hugo and blogdown."
summary_length = 300
github_edit = "https://github.com/yihui/hugo-xmag/edit/master/exampleSite/content/"
footer = "© [Yihui Xie](https://yihui.name) 2017 | [Github](https://github.com/yihui) | [Twitter](https://twitter.com/xieyihui)"
[params.text]
back = "← Back to Home"
edit = "Edit this page →"
truncated = "…"
网站上说 Magazine title in Blackletter (ℭ ℜ) 但我在 .css 文件中找不到与此类字体相关的任何内容。这是我要更改的字体。
请帮忙?
有想法就好了。
谢谢
一辉使用一些正则表达式黑魔法将标题转换为 Math bold Fraktur。因此,它不受 CSS 字体设置的控制。
你可以找到它here:
将其更改为另一种字体。将行修改为
{{ else }}<div class="yourfancytitle"> {{ .Site.Title }} </div>
然后在您的 CSS 中更改 font-family:
.yourfancytitle{
font-family: Candara;
}