Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/spech66/bootstrap-bp-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pech <windows@spech.de>2022-01-01 12:56:35 +0300
committerSebastian Pech <windows@spech.de>2022-01-01 12:56:35 +0300
commit212330d72bd8b1ec0f01003193f9c1e30b04f20d (patch)
treed4e2cb85f78eac9d6ca8c826fa64c947508b7874
parent11631321108944c6bf541d940ceb2b5a34a2d163 (diff)
seo schema lastmodv4.6.0
-rw-r--r--layouts/partials/seo_schema.html28
1 files changed, 15 insertions, 13 deletions
diff --git a/layouts/partials/seo_schema.html b/layouts/partials/seo_schema.html
index 96f0751..2894642 100644
--- a/layouts/partials/seo_schema.html
+++ b/layouts/partials/seo_schema.html
@@ -1,24 +1,26 @@
<script type="application/ld+json">
{
- "@context" : "http://schema.org",
- "@type" : "BlogPosting",
+ "@context": "http://schema.org",
+ "@type": "BlogPosting",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "{{ .Site.BaseURL }}"
},
- "articleSection" : "{{ .Section }}",
- "name" : "{{ .Title }}",
- "headline" : "{{ .Title }}",
- "description" : "{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}",
- "inLanguage" : "{{ .Lang }}",
- "author" : "{{ range .Site.Author }}{{ . }}{{ end }}",
- "creator" : "{{ range .Site.Author }}{{ . }}{{ end }}",
+ "articleSection": "{{ .Section }}",
+ "name": "{{ .Title }}",
+ "headline": "{{ .Title }}",
+ "description": "{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}",
+ "inLanguage": "{{ .Lang }}",
+ "author": "{{ range .Site.Author }}{{ . }}{{ end }}",
+ "creator": "{{ range .Site.Author }}{{ . }}{{ end }}",
"publisher": "{{ range .Site.Author }}{{ . }}{{ end }}",
- "accountablePerson" : "{{ range .Site.Author }}{{ . }}{{ end }}",
- "copyrightHolder" : "{{ range .Site.Author }}{{ . }}{{ end }}",
- "copyrightYear" : "{{ .Date.Format "2006" }}",
+ "accountablePerson": "{{ range .Site.Author }}{{ . }}{{ end }}",
+ "copyrightHolder": "{{ range .Site.Author }}{{ . }}{{ end }}",
+ "copyrightYear": "{{ .Date.Format "2006" }}",
"datePublished": "{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}",
- "dateModified" : "{{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}",
+ {{ with .Lastmod -}}
+ "dateModified": "{{ .UTC.Format "2006-01-02T15:04:05Z" | safeHTML }}",
+ {{- end }}
"url" : "{{ .RelPermalink }}",
"wordCount" : "{{ .WordCount }}",
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"Blog" ]