seo_schema.html 1.1 KB

1234567891011121314151617181920212223242526
  1. <script type="application/ld+json">
  2. {
  3. "@context" : "http://schema.org",
  4. "@type" : "BlogPosting",
  5. "mainEntityOfPage": {
  6. "@type": "WebPage",
  7. "@id": "{{ .Site.BaseURL }}"
  8. },
  9. "articleSection" : "{{ .Section }}",
  10. "name" : "{{ .Title }}",
  11. "headline" : "{{ .Title }}",
  12. "description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}",
  13. "inLanguage" : "en-US",
  14. "author" : "{{ range .Site.Author }}{{ . }}{{ end }}",
  15. "creator" : "{{ range .Site.Author }}{{ . }}{{ end }}",
  16. "publisher": "{{ range .Site.Author }}{{ . }}{{ end }}",
  17. "accountablePerson" : "{{ range .Site.Author }}{{ . }}{{ end }}",
  18. "copyrightHolder" : "{{ range .Site.Author }}{{ . }}{{ end }}",
  19. "copyrightYear" : "{{ .Date.Format "2006" }}",
  20. "datePublished": "{{ .Date }}",
  21. "dateModified" : "{{ .Date }}",
  22. "url" : "{{ .Permalink }}",
  23. "wordCount" : "{{ .WordCount }}",
  24. "keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"Blog" ]
  25. }
  26. </script>