DRAFT | new theme - minimage
This commit is contained in:
parent
5116fe4640
commit
ac8d9e7eb3
90 changed files with 15302 additions and 1 deletions
37
themes/minimage/layouts/partials/json-single.html
Normal file
37
themes/minimage/layouts/partials/json-single.html
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "NewsArticle",
|
||||
"mainEntityOfPage": {
|
||||
"@type": "NewsArticle",
|
||||
"@id": "{{ .Permalink }}",
|
||||
"headline": "{{ substr (replace (.Content) "\n" "") 0 110 }}",
|
||||
"author": "{{ .Site.Params.author }}",
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{{ .Site.Params.author }}",
|
||||
"logo": "{{ .Site.BaseURL }}{{ .Site.Params.logo }}"
|
||||
},
|
||||
"image": "{{ .Site.BaseURL }}{{ .Params.image }}",
|
||||
"datePublished": "{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"
|
||||
},
|
||||
"headline": "{{ substr (replace (.Content) "\n" "") 0 110 }}",
|
||||
"alternativeHeadline": "{{ .Site.Title }}",
|
||||
"datePublished": "{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}",
|
||||
"dateModified": "{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}",
|
||||
"url": "{{ .Permalink }}",
|
||||
"wordCount": "{{ .WordCount }}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{{ .Site.Params.author }}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{{ .Site.Params.author }}"
|
||||
},
|
||||
"image": "",
|
||||
{{if .Params.categories }}"genre": "{{ range .Params.categories }}{{ . }}{{ end }}",{{ end }}
|
||||
{{if .Params.tags }}"keywords": "{{ range .Params.tags }}{{ . }}{{ end }}",{{ end }}
|
||||
"description": "{{ .Description }}"
|
||||
}
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue