<commit_before>{{ $au := or .Params.author "alex" }}
{{ $author := index .Site.Data.authors $au }}

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Article",
  "author": {
    "name" : "{{ $author.name }}"
  },
  "headline": {{ .Title }},
  "description": {{ .Params.description }},
  "wordCount": {{ .Content | plainify | countwords }},
  "datePublished" : "{{ .PublishDate.Format "2006-01-02T15:04:05" }}",
  "dateModified" : "{{ .Lastmod.Format "2006-01-02T15:04:05"  }}",
  "articleBody": {{.Content}},
  "image" : {
      "@context": "http://schema.org",
      "@type": "ImageObject",
      "author": "",
      "url": "",
      "datePublished": "{{ .PublishDate.Format "2006-01-02T15:04:05" }}",
      "name": "",
      "height" : "",
      "width" : "",
      "license" : "",
      "isBasedOn" : ""
    },
  "mainEntityOfPage" : "{{ .Permalink }}",
  "publisher" : {
    "@type": "Organization",
    "name" : "{{ $.Site.Params.publisherName }}",
    "logo" : {
        "@type" : "ImageObject",
        "url" : "{{ $.Site.Params.publisherLogo }}",
        "height" : {{ $.Site.Params.publisherLogoHeight }},
        "width" : {{ $.Site.Params.publisherLogoWidth }}
    }
  }
}
</script>

<script type="application/ld+json">
    {
        "@context": "http://schema.org",
        "@type": "BlogPosting",
        "articleBody": {{ .Content }},
        "wordCount": "{{ .Content | plainify | countwords }}",
        "mainEntityOfPage": "{{ .Permalink }}",
        "headline": {{ .Title }},
        "datePublished" : "{{ .PublishDate.Format "2006-01-02T15:04:05" }}",
        "dateModified" : "{{ .Lastmod.Format "2006-01-02T15:04:05"  }}",
        "description": {{ .Params.description }},
        "url": "{{ .Permalink }}",
        "image": {
            "@type": "ImageObject",
            "url": "{{ .Site.BaseURL }}{{ if .Params.image }}/img/{{ .Params.image }}{{ else }}/img/default-thumb.png{{ end }}",
            "width": 640,
            "height": 435
        },
        "author": {
            "@type": "Person",
            "name": "{{ $author.name }}",
            "url" : "{{ .Site.BaseURL }}",
            "sameAs" : [
                {{with $author.facebook}}"https://www.facebook.com/{{ $author.facebook }}",{{end}}
                {{with $author.twitter}}"https://www.twitter.com/{{ $author.twitter }}",{{end}}
                {{with $author.linkedin}}"https://www.linkedin.com/in/{{ $author.linkedin }}",{{end}}
                {{with $author.google.plus}}"https://plus.google.com/+{{ $author.google.plus }}",{{end}}
                {{with $author.stackoverflow}}"http://stackoverflow.com/users/{{ $author.stackoverflow }}"{{end}}
            ]<commit_msg>updated Schema date<commit_after>{{ $au := or .Params.author "alex" }}
{{ $author := index .Site.Data.authors $au }}

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Article",
  "author": {
    "name" : "{{ $author.name }}"
  },
  "headline": {{ .Title }},
  "description": {{ .Params.description }},
  "wordCount": {{ .Content | plainify | countwords }},
  "datePublished" : "{{ .Date.Format "2006-01-02T15:04:05" }}",
  "dateModified" : "{{ .Lastmod.Format "2006-01-02T15:04:05"  }}",
  "articleBody": {{.Content}},
  "image" : {
      "@context": "http://schema.org",
      "@type": "ImageObject",
      "author": "",
      "url": "",
      "datePublished": "{{ .PublishDate.Format "2006-01-02T15:04:05" }}",
      "name": "",
      "height" : "",
      "width" : "",
      "license" : "",
      "isBasedOn" : ""
    },
  "mainEntityOfPage" : "{{ .Permalink }}",
  "publisher" : {
    "@type": "Organization",
    "name" : "{{ $.Site.Params.publisherName }}",
    "logo" : {
        "@type" : "ImageObject",
        "url" : "{{ $.Site.Params.publisherLogo }}",
        "height" : {{ $.Site.Params.publisherLogoHeight }},
        "width" : {{ $.Site.Params.publisherLogoWidth }}
    }
  }
}
</script>

<script type="application/ld+json">
    {
        "@context": "http://schema.org",
        "@type": "BlogPosting",
        "articleBody": {{ .Content }},
        "wordCount": "{{ .Content | plainify | countwords }}",
        "mainEntityOfPage": "{{ .Permalink }}",
        "headline": {{ .Title }},
        "datePublished" : "{{ .Date.Format "2006-01-02T15:04:05" }}",
        "dateModified" : "{{ .Lastmod.Format "2006-01-02T15:04:05"  }}",
        "description": {{ .Params.description }},
        "url": "{{ .Permalink }}",
        "image": {
            "@type": "ImageObject",
            "url": "{{ .Site.BaseURL }}{{ if .Params.image }}/img/{{ .Params.image }}{{ else }}/img/default-thumb.png{{ end }}",
            "width": 640,
            "height": 435
        },
        "author": {
            "@type": "Person",
            "name": "{{ $author.name }}",
            "url" : "{{ .Site.BaseURL }}",
            "sameAs" : [
                {{with $author.facebook}}"https://www.facebook.com/{{ $author.facebook }}",{{end}}
                {{with $author.twitter}}"https://www.twitter.com/{{ $author.twitter }}",{{end}}
                {{with $author.linkedin}}"https://www.linkedin.com/in/{{ $author.linkedin }}",{{end}}
                {{with $author.google.plus}}"https://plus.google.com/+{{ $author.google.plus }}",{{end}}
                {{with $author.stackoverflow}}"http://stackoverflow.com/users/{{ $author.stackoverflow }}"{{end}}
            ]
{'fraction_non_alphanumeric': 0.24621631598375784, 'fraction_numerical': 0.028054632705795498, 'mean_word_length': 2.4017576898932833, 'pattern_counts': {'":': 60, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 8, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3096889', 'n_tokens_mistral': 1933, 'n_tokens_neox': 1831, 'n_words': 274}