diff options
author | Jefferson Alexandre dos Santos <jefferson.alexandre@gmail.com> | 2018-04-30 16:56:13 +0300 |
---|---|---|
committer | Jefferson Alexandre dos Santos <jefferson.alexandre@gmail.com> | 2018-04-30 16:56:13 +0300 |
commit | f9f018ca6b65f9be60cc2b544af25be051dd6ceb (patch) | |
tree | 2bb26a95b9b9100771c562503c8c6b6bea905cc6 /layouts | |
parent | f89e41c9b7d0d0a77dfc8297da9c979704936ab6 (diff) |
Rename from seo_schema to schema
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/schema.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/layouts/partials/schema.html b/layouts/partials/schema.html new file mode 100644 index 0000000..430cdcf --- /dev/null +++ b/layouts/partials/schema.html @@ -0,0 +1,27 @@ +<script type="application/ld+json"> + { + "@context" : "http://schema.org", + "@type" : "BlogPosting", + "mainEntityOfPage": { + "@type": "WebPage", + "@id": "{{ .Site.BaseURL }}" + }, + "articleSection" : "{{ .Section }}", + "name" : "{{ .Title }}", + "headline" : "{{ .Title }}", + "description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}", + "inLanguage" : "pt-BR", + "author" : "{{ .Page.Params.author }}", + "creator" : "{{ .Page.Params.author }}", + "publisher": "{{ .Page.Params.author }}", + "accountablePerson" : "{{ .Page.Params.author }}", + "copyrightHolder" : "{{ .Page.Params.author }}", + "copyrightYear" : "{{ .Date.Format "2006" }}", + "datePublished": "{{ .Date }}", + "dateModified" : "{{ .Date }}", + "url" : "{{ .Permalink }}", + "wordCount" : "{{ .WordCount }}", + "image" : {{ printf "%s%s" .Site.BaseURL .Page.Params.image }}", + "keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"Blog" ] + } + </script>
\ No newline at end of file |