Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Chen-Zhe/photo-grid.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Zhe <chenzhesg@gmail.com>2022-01-05 01:11:02 +0300
committerChen Zhe <chenzhesg@gmail.com>2022-01-05 01:11:02 +0300
commita3f5f50ddc89cc8155a9377f90f9f10b81796382 (patch)
tree2a2345a6b4193a1aab5e25eded357f0ab2cc1f87
parentb60988168bef16edd5a24dce71fb1c9d1581c709 (diff)
configurable font face link
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/partials/head.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index c65c81d..5e24cce 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -16,6 +16,8 @@ theme = "photo-grid"
description = "Photo Grid - Grid Gallery For Hugo"
keywords = "Hugo, Hugo theme, grid theme, gallery"
+ font_face_link = "https://fonts.googleapis.com/css?family=Lato:300,400,700"
+
# Body background and text color
bodybgcolor = "#3d3d3d"
bodytextcolor = "#f2f2f2"
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 6e27d27..32ac318 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -19,7 +19,7 @@
color: {{ .Site.Params.bodytextcolor }};
}
</style>
- <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Lato:300,400,700" />
+ <link rel="stylesheet" type="text/css" href="{{ .Site.Params.font_face_link }}" />
<link rel="stylesheet" type="text/css" href="{{ (resources.Get "css/default.css" | minify).RelPermalink }}" />
<link rel="stylesheet" type="text/css" href="{{ (resources.Get "css/component.css" | minify).RelPermalink }}" />
{{ range .Site.Params.custom_css }}