Browse Source

fix: font not found for 1950s and Coffee themes

Fix #1314
George Cushen 5 năm trước cách đây
mục cha
commit
2479177a34
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      layouts/partials/functions/parse_theme.html

+ 1 - 1
layouts/partials/functions/parse_theme.html

@@ -1,7 +1,7 @@
 {{- $scr := .Scratch -}}
 
 {{- $theme_index := (site.Params.theme | lower | replaceRE "\\s" "_") | default "minimal" -}}
-{{- $font_index := (index site.Data.themes $theme_index).font_theme | default (site.Params.font | lower | replaceRE "\\s" "_") | default $theme_index | default "minimal" -}}
+{{- $font_index := (index site.Data.themes $theme_index).font | default (site.Params.font | lower | replaceRE "\\s" "_") | default $theme_index | default "minimal" -}}
 
 {{- $font_size := site.Params.font_size | default "m" -}}
 {{- $font_sizes := dict "s" 16 "m" 21 "l" 25 -}}