Skip to content

Commit

Permalink
Make Google Fonts optional
Browse files Browse the repository at this point in the history
Allow the user to disable Google Fonts by not setting .Site.Params.fonts.google_fonts.
  • Loading branch information
bkrl authored Jun 17, 2022
1 parent 6e5f538 commit bf4cc55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/google-fonts.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ with .Site.Params.fonts }}
{{ with .Site.Params.fonts.google_fonts }}
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="{{ .google_fonts }}" rel="stylesheet">
{{ end }}
<link href="{{ . }}" rel="stylesheet">
{{ end }}

0 comments on commit bf4cc55

Please sign in to comment.