Skip to content

Commit

Permalink
Revert "Split schema to a separate include file (mmistakes#3085)"
Browse files Browse the repository at this point in the history
This reverts commit 2f5e771.
  • Loading branch information
ElponeNote committed Jun 13, 2024
1 parent 7483479 commit a4cde2a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
16 changes: 0 additions & 16 deletions _includes/schema.html

This file was deleted.

18 changes: 15 additions & 3 deletions _includes/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,21 @@
<link rel="next" href="{{ paginator.next_page_path | absolute_url }}">
{% endif %}

{% if page.url == '/' %}
{% include schema.html %}
{% endif %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
{% if site.social.type == "Organization" %}
"@type": "Organization",
"url": {{ '/' | absolute_url | jsonify }}{% if site.og_image %},
"logo": {{ site_og_image | jsonify }}{% endif %}
{% else %}
"@type": "Person",
"name": {{ site.social.name | default: site.name | jsonify }},
"url": {{ '/' | absolute_url |jsonify }}{% if site.social.links %},
"sameAs": {{ site.social.links | jsonify }}{% endif %}
{% endif %}
}
</script>

{% if site.google_site_verification %}
<meta name="google-site-verification" content="{{ site.google_site_verification }}" />
Expand Down

0 comments on commit a4cde2a

Please sign in to comment.