summaryrefslogtreecommitdiffstats
path: root/layouts/partials/schema.org/website.html
blob: cde04ed27f3e7525a509978dd4e74ee05de07010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<script type="application/ld+json" id="schema-data">
    {
        "@context": "https://schema.org",
        "@type": "WebSite",
        "name": {{ partial "title.html" . }},
        "url": {{ site.BaseURL }},
        "keywords": {{ partial "keywords.html" . }}
    }
</script>

{{- /*
TODO: Add "potentialAction" with a search entrypoint (now we have a search)

For more see:
- https://developers.google.com/search/docs/advanced/structured-data/sitelinks-searchbox

Example:
{
    "@context": "https://schema.org",
    "@type": "WebSite",
    "url": "https://www.example.com/",
    "potentialAction": {
        "@type": "SearchAction",
        "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://query.example.com/search?q={search_term_string}"
        },
        "query-input": "required name=search_term_string"
    }
}
*/ -}}