Skip to content

Instantly share code, notes, and snippets.

@mizukmb
Created July 2, 2016 12:58
Show Gist options
  • Save mizukmb/76cfbeb6bc2a6ec51de88e7c24731c26 to your computer and use it in GitHub Desktop.
Save mizukmb/76cfbeb6bc2a6ec51de88e7c24731c26 to your computer and use it in GitHub Desktop.
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Blog",
"alternativeHeadline": "{{ if not .IsHome }}{{ humanize .Title }} | {{ end }}{{ .Site.Title | plainify }}",
"url": "{{ .Site.BaseURL }}",
"image": "{{ .Site.BaseURL }}/images/mizukmb.png",
"author": {
"@type": "Person",
"name": "mizukmb",
"url": [
"https://github.com/mizukmb",
"https://twitter.com/mizukmb"
],
"image": "http://1.gravatar.com/avatar/a622327832207d7a36b23b07f16c9c85"
}{{ if .IsPage }},
"blogPost": {
"@type": "BlogPosting",
"author": {
"@type": "Person",
"name": "mizukmb",
"url": [
"https://github.com/mizukmb",
"https://twitter.com/mizukmb"
],
"image": "http://1.gravatar.com/avatar/a622327832207d7a36b23b07f16c9c85"
},
"headline": "{{ substr (replace (.Content | plainify) "\n" "") 0 110 }}",
"image": "{{ .Site.BaseURL }}/images/mizukmb.png",
"name": "{{ .Site.Title }}",
"publisher": {
"@type": "Organization",
"logo": "http://1.gravatar.com/avatar/a622327832207d7a36b23b07f16c9c85",
"name": "mizukmb"
},
"alternativeHeadline": "{{ .Site.Title | plainify}}",
"dateCreated": "{{ .Date.Format "2006/01/02" }}",
"datePublished": "{{ .Date.Format "2006/01/02" }}",
{{ if .Params.tags }}"keywords": "{{ .Params.tags }}",{{ end }}
"inLanguage": "Japanese"
}
{{ end }}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment