mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-25 10:50:50 +02:00
Use provider names rather than integers. BREAKING CHANGE: - Rename `site.Params.comments.engine` to `site.Params.comments.provider` - Rename `site.Params.search.engine` to `site.Params.search.provider` - Rename `site.Params.map.engine` to `site.Params.map.provider` - Use provider name (string) rather than integer - For built-in search, provider is "wowchemy" - For leaflet maps, the provider is "mapnik" or "mapbox"
14 lines
366 B
HTML
14 lines
366 B
HTML
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "WebSite",
|
|
{{- if site.Params.search.provider }}
|
|
"potentialAction": {
|
|
"@type": "SearchAction",
|
|
"target": {{ printf "%s?q={search_term_string}" site.BaseURL }},
|
|
"query-input": "required name=search_term_string"
|
|
},
|
|
{{end -}}
|
|
"url": {{site.BaseURL}}
|
|
}
|
|
</script>
|