Skip to content

Commit

Permalink
structured data: author
Browse files Browse the repository at this point in the history
  • Loading branch information
ka8725 committed Sep 28, 2023
1 parent cea81c6 commit c70b7d3
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,28 @@
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]-->
<head>
{% include head.html %}
{% include head.html %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"headline": "{{ page.title }}",
"image": [
{% if page.image %}
"{{ site.url }}/images/{{ page.image }}"
{% else %}
"{{ site.url }}/images/post.jpg"
{% endif %}
],
"datePublished": "{{ page.date }}",
"dateModified": {% if page.modified %}"{{ page.modified }}"{% else %}"{{ page.date }}"{% endif %},
"author": [{
"@type": "Person",
"name": "Andrei Kaleshka",
"url": "https://www.linkedin.com/in/ka8725/"
}]
}
</script>
</head>

<body id="post">
Expand Down

0 comments on commit c70b7d3

Please sign in to comment.