feat(legal): merge legal and credits page
This commit is contained in:
parent
9787e1a1d5
commit
83a7fc5cf8
4 changed files with 9 additions and 14 deletions
8
main.go
8
main.go
|
@ -59,11 +59,11 @@ func main() {
|
||||||
g.Templates = append(g.Templates, "templates/base/*.gohtml")
|
g.Templates = append(g.Templates, "templates/base/*.gohtml")
|
||||||
|
|
||||||
g.NewTemplate("index", "/", cfg.Person.Name, "", "", &cfg).Handle()
|
g.NewTemplate("index", "/", cfg.Person.Name, "", "", &cfg).Handle()
|
||||||
g.NewTemplate("credits",
|
g.NewTemplate("legal",
|
||||||
"/credits",
|
"/legal",
|
||||||
"Credits",
|
"Legal things",
|
||||||
"",
|
"",
|
||||||
"Credits of "+cfg.Person.Name+"'s Now page",
|
"Legal information about "+cfg.Person.Name+"'s Now page",
|
||||||
&cfg).
|
&cfg).
|
||||||
Handle()
|
Handle()
|
||||||
g.NewTemplate("tags",
|
g.NewTemplate("tags",
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
{{template "body" .Data}}
|
{{template "body" .Data}}
|
||||||
</div>
|
</div>
|
||||||
<footer class="credits">
|
<footer class="credits">
|
||||||
<p>Crafted by <a href="https://www.anhgelus.world/" target="_blank">Anhgelus Morhtuuzh</a></p>
|
<p>Crafted by <a href="/legal" target="_blank">Anhgelus Morhtuuzh</a></p>
|
||||||
</footer>
|
</footer>
|
||||||
<script type="module" src="{{getAssetPath "index.js"}}" defer></script>
|
<script type="module" src="{{getAssetPath "index.js"}}" defer></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -18,17 +18,9 @@
|
||||||
<a href="{{ .Link }}" style="{{ .GetLinkColor }}">{{ .Content }}</a>
|
<a href="{{ .Link }}" style="{{ .GetLinkColor }}">{{ .Content }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="link" style="{{ .Color.Button.GetBackground }}">
|
|
||||||
<a href="{{ .Legal.LegalInformationLink }}" target="_blank" style="{{ .Color.Button.GetTextColor }}">
|
|
||||||
Legal information
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="link" style="{{ .Color.Button.GetBackground }}">
|
<div class="link" style="{{ .Color.Button.GetBackground }}">
|
||||||
<a href="/tags" style="{{ .Color.Button.GetTextColor }}">Tags</a>
|
<a href="/tags" style="{{ .Color.Button.GetTextColor }}">Tags</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="link" style="{{ .Color.Button.GetBackground }}">
|
|
||||||
<a href="/credits" style="{{ .Color.Button.GetTextColor }}">Credits</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
{{end}}
|
{{end}}
|
|
@ -1,6 +1,9 @@
|
||||||
{{define "body"}}
|
{{define "body"}}
|
||||||
<div class="credits-legal">
|
<div class="credits-legal">
|
||||||
<h2>Credits</h2>
|
<h2>Legal information</h2>
|
||||||
|
<p>
|
||||||
|
Legal information are available <a href="{{ .Legal.LegalInformationLink }}" target="_blank">here</a>.
|
||||||
|
</p>
|
||||||
<p>
|
<p>
|
||||||
The software behind this website was made by <a href="https://www.anhgelus.world/" target="_blank">Anhgelus Morhtuuzh</a>.
|
The software behind this website was made by <a href="https://www.anhgelus.world/" target="_blank">Anhgelus Morhtuuzh</a>.
|
||||||
It is available on <a href="https://github.com/anhgelus/now">GitHub</a> for free and licensed under the
|
It is available on <a href="https://github.com/anhgelus/now">GitHub</a> for free and licensed under the
|
Loading…
Add table
Add a link
Reference in a new issue