mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
Remove seo_schema.html
This commit is contained in:
parent
0893c99f97
commit
b83e20274f
@ -33,7 +33,6 @@
|
|||||||
{{ partial "opengraph.html" . }}
|
{{ partial "opengraph.html" . }}
|
||||||
{{ partial "twitter_cards.html" . }}
|
{{ partial "twitter_cards.html" . }}
|
||||||
{{ partial "schema.html" . }}
|
{{ partial "schema.html" . }}
|
||||||
{{ partial "seo_schema.html" . }}
|
|
||||||
|
|
||||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
||||||
|
|
||||||
|
@ -1,55 +0,0 @@
|
|||||||
{{/* See https://github.com/spech66/hugo-best-practices#add-a-schemaorg-partial */}}
|
|
||||||
<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 }}",
|
|
||||||
"description" : "{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}",
|
|
||||||
"inLanguage" : "{{ .Lang }}",
|
|
||||||
{{ with .Params.authors -}}
|
|
||||||
"author" : [
|
|
||||||
{{ $len := len . }}
|
|
||||||
{{ range $i, $author := . -}}
|
|
||||||
{{ $url := (printf `authors/%s` ($author | anchorize)) -}}
|
|
||||||
{
|
|
||||||
"@type": "Person",
|
|
||||||
"name": "{{ $author }}",
|
|
||||||
"url": "{{ $url | absLangURL }}",
|
|
||||||
{{ with ($.Site.GetPage $url) -}}
|
|
||||||
"description": "{{ with .Description }}{{ . | plainify }}{{ end }}"
|
|
||||||
{{ end -}}
|
|
||||||
{{ if eq (add $i 1) $len -}}
|
|
||||||
}
|
|
||||||
{{ else }}
|
|
||||||
},
|
|
||||||
{{ end }}
|
|
||||||
{{ end -}}
|
|
||||||
],{{ end }}
|
|
||||||
|
|
||||||
{{ $images := $.Resources.ByType "image" -}}
|
|
||||||
{{ $featured := $images.GetMatch "*feature*" -}}
|
|
||||||
{{ if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
|
|
||||||
{{ with $featured -}}
|
|
||||||
"image": "{{ .Permalink }}",
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ with .Date -}}
|
|
||||||
"copyrightYear" : "{{ .Format "2006" }}",
|
|
||||||
"datePublished": "{{ . | safeHTML }}",
|
|
||||||
{{ end }}
|
|
||||||
{{ with .Lastmod }}
|
|
||||||
"dateModified" : "{{ . | safeHTML }}",
|
|
||||||
{{ end }}
|
|
||||||
"url" : "{{ .Permalink }}",
|
|
||||||
"wordCount" : "{{ .WordCount }}",
|
|
||||||
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }} "Blog" ]
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
|
Loading…
Reference in New Issue
Block a user