aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data.go1
-rw-r--r--example.json3
-rw-r--r--templates/page/credits.gohtml2
3 files changed, 5 insertions, 1 deletions
diff --git a/data.go b/data.go
index 4ccae88..2b755bb 100644
--- a/data.go
+++ b/data.go
@@ -47,6 +47,7 @@ type Link struct {
type Legal struct {
LegalInformationLink string `json:"legal_information_link"`
ImagesSource []string `json:"images_source"`
+ FontSource string `json:"font_source"`
}
func (c *Config) GetBackground() template.CSS {
diff --git a/example.json b/example.json
index 9de32ed..f36ae27 100644
--- a/example.json
+++ b/example.json
@@ -59,6 +59,7 @@
"images_source": [
"Profile picture: John Smith for example.org",
"Background: John Smith 2 for another.example.org"
- ]
+ ],
+ "font_source": "serif by ?"
}
} \ No newline at end of file
diff --git a/templates/page/credits.gohtml b/templates/page/credits.gohtml
index c3ed576..2d82734 100644
--- a/templates/page/credits.gohtml
+++ b/templates/page/credits.gohtml
@@ -10,5 +10,7 @@
{{ range $s := .Legal.ImagesSource }}
<p>{{ . }}</p>
{{ end }}
+ <h3>Font credits</h3>
+ <p>{{ .Legal.FontSource }}</p>
</div>
{{end}} \ No newline at end of file