mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
5f48ca7bbe
Use the SearchMySite API to gather results and render them in HTML on my own site. I'll open-source the Go program that generates the results soon.
8 lines
375 B
HTML
8 lines
375 B
HTML
{{ define "main" -}}
|
|
{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" }}
|
|
<main itemprop="mainEntity" itemscope="" itemtype="https://schema.org/SearchResultsPage" itemid="{{ .Site.Params.CanonicalBaseURL }}{{ $canonicalRelPermalink }}">
|
|
{{ partial "search.html" . }}
|
|
<hr />
|
|
{{ readFile "/dynamic/search-results.html" | safeHTML }}
|
|
</main>
|
|
{{ end }}
|