fix(meta): opengraph, json-ld and gitinfo
Some checks failed
Deploy workflow / deploy (push) Failing after 22s
Some checks failed
Deploy workflow / deploy (push) Failing after 22s
This commit is contained in:
parent
eac78b1acf
commit
5d3aaafe35
5 changed files with 48 additions and 20 deletions
24
layouts/partials/metas/json-ld.html
Normal file
24
layouts/partials/metas/json-ld.html
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{{ if .IsPage }}
|
||||
{{ if eq .Section "actualites" }}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context" : "http://schema.org",
|
||||
"@type" : "BlogPosting",
|
||||
"articleSection" : "{{ .Section | title }}",
|
||||
"name" : "{{ .Title }}",
|
||||
"headline" : "{{ .Title }}",
|
||||
"description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}",
|
||||
"inLanguage" : "fr-FR",
|
||||
"author" : "{{ .Params.author }}",
|
||||
"creator" : "Étoile de Bethléem",
|
||||
"accountablePerson" : "Étoile de Bethléem",
|
||||
"datePublished": "{{ .PublishDate.Format $.Site.Params.ISO8601 }}",
|
||||
"dateModified" : "{{ .Lastmod.Format $.Site.Params.ISO8601 }}",
|
||||
"url" : "{{ .Permalink }}",
|
||||
"wordCount" : "{{ .WordCount }}",
|
||||
"keywords" : [ {{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} ]
|
||||
}
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue