1234567891011121314151617181920212223242526272829303132333435363738 |
- <script type="application/ld+json">
- {{ if eq .Section "blog" }}
- {
- "@context": "https://schema.org",
- "@type": "BlogPosting",
- "headline": {{ .Title }},
- "image": {{ .Params.image | absURL }},
- "datePublished": {{ .PublishDate }},
- "dateModified": {{ .Lastmod }},
- "author": {
- "@type": "Person",
- "name": {{ .Site.Params.author }}
- },
- "mainEntityOfPage": { "@type": "WebPage" },
- "publisher": {
- "@type": "Organization",
- "name": {{ .Site.Params.author }},
- "logo": {
- "@type": "ImageObject",
- "url": {{ .Site.Params.logo }}
- }
- },
- "description": {{ .Summary | plainify | safeHTML }},
- "keywords": [{{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}]
- }
- {{ end }}
- {
- "@context": "https://schema.org",
- "@type": "Organization",
- "name": {{ .Site.Params.author }},
- "url": {{ .Site.BaseURL }},
- "sameAs": [
- "https://www.facebook.com/{{ .Site.Params.facebook }}"
- ]
- }
- </script>
|