feat: add canonical links to results and details pages
1 file changed, 6 insertions(+), 0 deletions(-)
changed files
M internal/components/page.go → internal/components/page.go
@@ -58,6 +58,12 @@ TitleAttr("Searchix "+source.String()), Href(joinPath("/", source.Importer.String(), source.Key, "opensearch.xml")), ) }), + g.Iff(tdata.CanonicalURL != "", func() g.Node { + return Link( + Rel("canonical"), + Href(tdata.CanonicalURL), + ) + }), ), Body( Header(