Files
landing_page/qdrant-landing/themes/qdrant/layouts/partials/seo_schema.html
T
trean 8d746ef7c3 Blog layout (#12)
* WIP: blog layout

* categories and tags widgets

* moved blog post previews to partials

* blog categories and tags

* blog post page

* whole posts in the list

* some fixes for blog posts list

* single page is available from list view

* fixes

* share links

* fix

* added open graph meta tags

* added twitter meta tags

* added gitignore

* added pagination

* fixed red corners on previews

* added an author link

* fix
2022-03-15 14:00:11 +01:00

65 lines
2.3 KiB
HTML

<meta name="description" content="{{ .Site.Params.Description }}">
<meta name="keywords" content="{{ range .Site.Params.Keywords }}{{ . }}, {{ end }} qdrant">
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "WebPage",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "{{ .Site.BaseURL }}"
},
"name" : "{{ .Title }}",
"headline" : "{{ .Title }}",
"description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}",
"inLanguage" : "en-US",
"author" : "{{ .Site.Params.Author }}",
"accountablePerson" : "{{ .Site.Params.Author }}",
"copyrightHolder" : "{{ .Site.Params.Author }}",
"copyrightYear" : "{{ .Date.Format "2006" }}",
"datePublished": "{{ .Date }}",
"dateModified" : "{{ .Date }}",
"url" : "{{ .Permalink }}",
"wordCount" : "{{ .WordCount }}",
"keywords" : [ {{ range .Site.Params.Keywords }}"{{ . }}", {{ end }} "Qdrant" ]
}
</script>
{{ $url := urls.Parse .Site.BaseURL }}
{{ $domain := index (split $url.Host ".") 0 }}
{{ $imageUrl := path.Join .Site.BaseURL .Site.Params.share_preview_img}}
{{ if .Params.preview_image }}
{{ $imageUrl := path.Join .Site.BaseURL .Params.preview_image }}
{{ end }}
{{ $title := printf "%s" "Qdrant" | printf "%s%s" " - " | printf "%s%s" .Title | printf "%s" }}
{{ if or ( and (.IsPage) (eq $.Section "blog") ) ( and ($.IsNode) (eq $.Section "") ) }}
{{ $title := .Title }}
{{ end }}
{{ $description := "" }}
{{ if .Description }}
{{ $description := .Description }}
{{ else }}
{{if .IsPage}}
{{ $description := .Summary }}
{{ end }}
{{ end }}
<!-- Facebook Meta Tags -->
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ $title }}">
<meta property="og:description" content="{{ $description }}">
<meta property="og:image" content="{{ $imageUrl }}">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="{{ $domain }}">
<meta property="twitter:url" content="{{ .Permalink }}">
<meta name="twitter:title" content="{{ $title }}">
<meta name="twitter:description" content="{{ $description }}">
<meta name="twitter:image" content="{{ $imageUrl }}">