Skip to content

Commit

Permalink
feat: update google fonts css api to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Mar 5, 2020
1 parent 5ff821d commit 67bb2c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config-examples/en-us/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -912,9 +912,9 @@ uglyURLs = false
# Menu bar
fontFamilyMenu = ""
# Post title, post subtitle, list title, year and month title of the list, related posts title, previous/next post title, header of table, term/name in a definition list
fontFamilyTitle = "Comfortaa, sans-serif"
fontFamilyTitle = "'Comfortaa', sans-serif"
# Headings, toc title
fontFamilyHeadings = "Comfortaa, sans-serif"
fontFamilyHeadings = "'Comfortaa', sans-serif"
# Code, superscript, post meta info, post updated badge, post gitinfo, minimal footer, busuanzi site view counter
fontFamilyCode = "'Source Code Pro', monospace"
# Blockquotes
Expand All @@ -929,7 +929,7 @@ uglyURLs = false
fontFamilyBody = "'IBM Plex Serif', serif"

# Embed fonts link
fontsLink = "https://fonts.googleapis.com/css?family=IBM+Plex+Serif:400,400i,500,700,700i|Source+Code+Pro:400,400i,700,700i|Comfortaa:700&display=swap"
fontsLink = "https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,400;0,500;0,700;1,400;1,700&family=Source+Code+Pro:ital,wght@0,400;0,700;1,400;1,700&family=Comfortaa:wght@700&display=swap"
# Note: In order for the reader to
# experience the fonts you set,
# it is best to use web fonts.
Expand Down
2 changes: 1 addition & 1 deletion config-examples/zh-cn/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ uglyURLs = false
fontFamilyBody = "'EB Garamond', 'Noto Serif SC', serif"

# 网络字体链接
fontsLink = "https://fonts.googleapis.com/css?family=EB+Garamond:400,400i,500,700,700i|Noto+Serif+SC:400,500,700|Source+Code+Pro:400,400i,700,700i&display=swap"
fontsLink = "https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,700;1,400;1,700&family=Noto+Serif+SC:wght@400;500;700&family=Source+Code+Pro:ital,wght@0,400;0,700;1,400;1,700&display=swap"
# 说明:要想读者一定体验到你设置的字体,最好
# 采用网络字体。MemE 主题目前仅支持
# Google Fonts 的链接,请前往
Expand Down

0 comments on commit 67bb2c5

Please sign in to comment.