feat(credits): font source

This commit is contained in:
Anhgelus Morhtuuzh 2024-11-10 17:22:34 +01:00
parent 7e50f8489e
commit de2cc0e283
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5
3 changed files with 5 additions and 1 deletions

View file

@ -47,6 +47,7 @@ type Link struct {
type Legal struct { type Legal struct {
LegalInformationLink string `json:"legal_information_link"` LegalInformationLink string `json:"legal_information_link"`
ImagesSource []string `json:"images_source"` ImagesSource []string `json:"images_source"`
FontSource string `json:"font_source"`
} }
func (c *Config) GetBackground() template.CSS { func (c *Config) GetBackground() template.CSS {

View file

@ -59,6 +59,7 @@
"images_source": [ "images_source": [
"Profile picture: John Smith for example.org", "Profile picture: John Smith for example.org",
"Background: John Smith 2 for another.example.org" "Background: John Smith 2 for another.example.org"
] ],
"font_source": "serif by ?"
} }
} }

View file

@ -10,5 +10,7 @@
{{ range $s := .Legal.ImagesSource }} {{ range $s := .Legal.ImagesSource }}
<p>{{ . }}</p> <p>{{ . }}</p>
{{ end }} {{ end }}
<h3>Font credits</h3>
<p>{{ .Legal.FontSource }}</p>
</div> </div>
{{end}} {{end}}