diff options
author | bkrl <97085527+bkrl@users.noreply.github.com> | 2022-06-17 07:15:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-17 07:15:22 +0300 |
commit | bf4cc556815c85569ce31ce71f6158c14f8b3ecd (patch) | |
tree | f7afce9bd40708dcbe6cd25725617b3331ebd46e | |
parent | 6e5f538484b2be9c6034381ddbe58ef4c5305a43 (diff) |
Make Google Fonts optional
Allow the user to disable Google Fonts by not setting .Site.Params.fonts.google_fonts.
-rw-r--r-- | layouts/partials/google-fonts.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/google-fonts.html b/layouts/partials/google-fonts.html index 410a0f6..daec7c3 100644 --- a/layouts/partials/google-fonts.html +++ b/layouts/partials/google-fonts.html @@ -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 }}
\ No newline at end of file + <link href="{{ . }}" rel="stylesheet"> +{{ end }} |