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

This commit is contained in:
Anhgelus Morhtuuzh 2025-03-10 11:14:09 +01:00
parent 2d74d8afc3
commit 42a96cbb6e
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5
4 changed files with 60 additions and 102 deletions

View file

@ -8,6 +8,11 @@
<title>{{ .Title }}</title>
<link rel="stylesheet" href="{{getAssetPath "styles.css"}}" />
{{template "opengraph-base" .SEO}}
{{ if .Data.IsCustomPage }}
<style>
.links { {{ .Data.Color.Button.GetBackground }}{{ .Data.Color.Button.GetTextColor }} }
</style>
{{ end }}
</head>
<body style="{{ .Data.GetBackgroundImage }}{{ .Data.GetTextColor }}">
<div class="center">