This commit is contained in:
26
layouts/_partials/seo.html
Normal file
26
layouts/_partials/seo.html
Normal file
@ -0,0 +1,26 @@
|
||||
<!-- OpenGraph metadata -->
|
||||
<meta property="og:title" content="{{ if .Params.title }}{{.Params.title | plainify }} | {{end}}The Writing of Madison Rye Progress" />
|
||||
<meta property="og:site_name" content="The Writing of Madison Rye Progress" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:image" content="{{ if .Params.ogimg }}{{ .Params.ogimg | absURL }}{{ else }}{{ if .Params.img }}{{ .Params.img | absURL }}{{ else }}{{ "/assets/img/headshot.jpg" | absURL }}{{ end }}{{ end }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
<meta property="og:description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}The Writing of Madison Rye Progress{{ end }}" />
|
||||
|
||||
<!-- Twitter Card metadata -->
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:site" content="@makyo_writes" />
|
||||
<meta name="twitter:title" content="{{ if .Params.title }}{{.Params.title | plainify }} | {{end}}The Writing of Madison Rye Progress" />
|
||||
<meta name="twitter:description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}The Writing of Madison Rye Progress{{ end }}" />
|
||||
<meta name="twitter:image" content="{{ if .Params.ogimg }}{{ .Params.ogimg | absURL }}{{ else }}{{ if .Params.img }}{{ .Params.img | absURL }}{{ else }}{{ "/assets/img/headshot.jpg" | absURL }}{{ end }}{{ end }}" />
|
||||
|
||||
<!-- JSON-LD metadata -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": "The Writing of Madison Rye Progress",
|
||||
"headline": "{{ if .Params.title }}{{.Params.title | plainify }} | {{end}}The Writing of Madison Rye Progress",
|
||||
"description": "{{ if .Params.description }}{{ .Params.description }}{{ else }}The Writing of Madison Rye Progress{{ end }}",
|
||||
"url": "{{ .Permalink }}"
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user