refactor(pages): use html instead of json to render legal

This commit is contained in:
Anhgelus Morhtuuzh 2025-03-10 10:56:47 +01:00
parent f98647cabb
commit 2d74d8afc3
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5
4 changed files with 18 additions and 45 deletions

View file

@ -172,14 +172,7 @@ func generateConfigFile(isToml bool) {
{"/foo", "Blog"},
{"https://www.youtube.com/@anhgelus", "YouTube"},
},
Legal: &Legal{
LegalInformationLink: "/bar",
ImagesSource: []string{
"Profile picture: some one on website",
"Background picture: another one on another website",
},
FontSource: "Name by some one on website",
},
Legal: "legal.html",
CustomPages: []string{"custom.json"},
}
var b []byte