Preload text image

This commit is contained in:
Daniele Tonon
2023-12-19 18:35:38 +01:00
parent 3e82d7c567
commit 8e1e6bbf8f
3 changed files with 6 additions and 2 deletions

View File

@@ -125,7 +125,9 @@ var (
)
//tmpl:bind footer.html
type FooterPartial struct{}
type FooterPartial struct {
BigImage string
}
func (*FooterPartial) TemplateText() string { return tmplFooter }

View File

@@ -20,3 +20,5 @@
</clipPath>
</defs>
</svg>
<img src="{{.BigImage}}" class="absolute left-[-999px]" />

View File

@@ -80,6 +80,6 @@
</div>
</div>
{{template "footer" .}}
{{template "footer" .OpenGraphPartial}}
</body>
</html>