Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ theme_plus:
theme: next
theme_config:
custom_file_path:
head: custom/head.njk
style: custom/styles.styl
variable: custom/variables.styl

Expand Down
3 changes: 3 additions & 0 deletions custom/head.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
9 changes: 9 additions & 0 deletions custom/variables.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@ $brand-hover-color = #fe6600;

$posts-first-padding = 35px;
$posts-first-padding-mobile = 35px;

// Override NexT's default font stack so Latin fallbacks come before CJK fonts.
// Without this, browsers without Lato installed fall through to PingFang SC.
// All four variables must be reset because base.styl copies $font-family-base
// into the derived variables before this file is loaded.
$font-family-base = Lato, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
$font-family-logo = $font-family-base;
$font-family-headings = $font-family-base;
$font-family-posts = $font-family-base;
Loading
Loading