From f7d08cd07df3b553585bcebf61edf32deb7b55be Mon Sep 17 00:00:00 2001 From: trean Date: Wed, 23 Nov 2022 17:19:19 +0100 Subject: [PATCH] Different seo schema for differen pages (#93) * different seo schema for differen pages * removed unused condition --- qdrant-landing/content/benchmarks/_index.md | 2 ++ .../qdrant/layouts/partials/seo_schema.html | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/qdrant-landing/content/benchmarks/_index.md b/qdrant-landing/content/benchmarks/_index.md index 2333cb275..5f3e83772 100644 --- a/qdrant-landing/content/benchmarks/_index.md +++ b/qdrant-landing/content/benchmarks/_index.md @@ -14,4 +14,6 @@ keywords: - vector search - embedding preview_image: /benchmarks/benchmark-1.png +seo_schema: { "@context": "https://schema.org", "@type": "Article", "headline": "Vector Search Comparative Benchmarks", "image": [ "https://qdrant.tech/benchmarks/benchmark-1.png" ], "abstract": "The first comparative benchmark and benchmarking framework for vector search engines", "datePublished": "2022-08-23", "dateModified": "2022-08-23", "author": [{ "@type": "Organization", "name": "Qdrant", "url": "https://qdrant.tech" }] } + --- \ No newline at end of file diff --git a/qdrant-landing/themes/qdrant/layouts/partials/seo_schema.html b/qdrant-landing/themes/qdrant/layouts/partials/seo_schema.html index 325f1dd21..7b31a4800 100644 --- a/qdrant-landing/themes/qdrant/layouts/partials/seo_schema.html +++ b/qdrant-landing/themes/qdrant/layouts/partials/seo_schema.html @@ -10,6 +10,7 @@ {{ end }} +{{ if .IsHome }} +{{ else if .Params.seo_schema }} + + +{{ else if and (eq .Section "articles") .IsPage }} + +{{ end }} {{ $url := urls.Parse .Site.BaseURL }} {{ $domain := index (split $url.Host ".") 0 }}