chore: theme post

This commit is contained in:
Cory Dransfeldt 2024-02-17 12:38:32 -08:00
parent b3f665b2d2
commit e83f69a344
No known key found for this signature in database
2 changed files with 171 additions and 42 deletions

View file

@ -59,49 +59,49 @@
title="Cory Dransfeldt's links feed"
type="application/rss+xml">
{% if schema == 'blog' %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"mainEntityOfPage": {
"@type": "WebPage"
},
"isPartOf": {
"@id": "{{ meta.url }}#website"
},
"@id": "{{ fullUrl }}",
"headline": "{%- if title %}{{ title }} • {% endif -%}{{ meta.siteName }}",
"description": "{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}",
"image": "{% if image %}{{ image }}{% else %}{{ meta.meta_data.opengraph_default }}{% endif %}",
"inLanguage": "{{ meta.locale }}",
"publisher": {
"@type": "{{ meta.siteType }}",
"name": "{{ meta.author }}",
"url": "{{ meta.url }}"
},
"author": {
"@type": "Person",
"name": "{{ meta.author }}"
},
"datePublished": "{{ page.date | isoDateOnly }}"
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"mainEntityOfPage": {
"@type": "WebPage"
},
"isPartOf": {
"@id": "{{ meta.url }}#website"
},
"@id": "{{ fullUrl }}",
"headline": "{%- if title %}{{ title }} • {% endif -%}{{ meta.siteName }}",
"description": "{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}",
"image": "{% if image %}{{ image }}{% else %}{{ meta.meta_data.opengraph_default }}{% endif %}",
"inLanguage": "{{ meta.locale }}",
"publisher": {
"@type": "{{ meta.siteType }}",
"name": "{{ meta.author }}",
"url": "{{ meta.url }}"
},
"author": {
"@type": "Person",
"name": "{{ meta.author }}"
},
"datePublished": "{{ page.date | isoDateOnly }}"
}
</script>
{% else %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"@id": "{{ meta.url }}#website",
"url": "{{ meta.url }}",
"name": "{%- if title %}{{ title }} • {% endif -%}{{ meta.siteName }}",
"description": "{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}",
"inLanguage": "{{ meta.locale }}"
}
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"@id": "{{ meta.url }}#website",
"url": "{{ meta.url }}",
"name": "{%- if title %}{{ title }} • {% endif -%}{{ meta.siteName }}",
"description": "{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}",
"inLanguage": "{{ meta.locale }}"
}
]
}
</script>
{% endif %}
<script defer data-domain="coryd.dev" src="/js/script.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>