Skip to content

Commit

Permalink
feat: add fontFamilyMenu option
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Sep 1, 2019
1 parent 61952a2 commit 1269b9c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/scss/_common/fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
}
}

@if variable-exists("fontFamilyMenu") {
.menu {
font-family: $fontFamilyMenu;
}
}

@if variable-exists("fontFamilyTitle") {
.list-title, .term-title, .list-year, .list-month, .post-title, .post-subtitle, .related-title, .post-nav {
font-family: $fontFamilyTitle;
Expand Down
3 changes: 3 additions & 0 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
{{ with .Site.Params.fontFamilySiteBrand }}
$fontFamilySiteBrand: {{ $glyph }}{{ . }};
{{ end }}
{{ with .Site.Params.fontFamilyMenu }}
$fontFamilyMenu: {{ $glyph }}{{ . }};
{{ end }}
{{ with .Site.Params.fontFamilyTitle }}
$fontFamilyTitle: {{ $glyph }}{{ . }};
{{ end }}
Expand Down
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ lineHeight = 1.618
# Any value is not set, fallback to `fontFamilyBody` it will.
# If you use SVG as your Site Brand, then leave this value empty.
fontFamilySiteBrand = ""
fontFamilyMenu = ""
fontFamilyTitle = "'Cinzel Decorative', serif"
fontFamilyHeadings = "'Cinzel Decorative', serif"
fontFamilyCode = "'Source Code Pro', monospace"
Expand Down

0 comments on commit 1269b9c

Please sign in to comment.