refactor(pages): use html instead of json to render legal
This commit is contained in:
parent
f98647cabb
commit
2d74d8afc3
4 changed files with 18 additions and 45 deletions
9
main.go
9
main.go
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue