1

more metadata

This commit is contained in:
Evan Pratten 2022-05-08 10:18:14 -04:00
parent fed6fc374d
commit 420b3cc4a9
3 changed files with 82 additions and 15 deletions

View File

@ -0,0 +1,70 @@
[
{
"@context": "http://schema.org",
"@type": "Webpage",
"specialty": "{{description}}",
"mainContentOfPage": {
"@context": "http://schema.org/",
"@type": "WebPageElement",
"cssSelector": ".page-content"
}
},
{
"@context": "http://schema.org",
"@type": "WebSite",
"additionalType": [
"CreativeWork",
"Person"
],
"url": "{{url}}",
"name": "Evan Pratten",
"alternateName": "ewpratten",
"headline": "{{title}}",
"image": "{{avatar}}",
"inLanguage": "en-CA",
"author": "Evan Pratten",
"description": "{{description}}",
"disambiguatingDescription": "Personal website of Evan Pratten",
"publisher": {
"@type": "Organization",
"name": "Evan Pratten",
"url": "https://va3zza.com",
"logo": {
"@type": "ImageObject",
"url": "{{avatar}}",
"width": "460",
"height": "460"
}
},
"potentialAction": {
"@type": "SearchAction",
"target": "{{url}}/search?q={search_term_string}",
"query-input": "required name=search_term"
},
"keywords": [
"Evan Pratten",
"Software",
"Music",
"Photography",
"Hobby",
"Blog"
]
},
{
"@context": "https://schema.org",
"@graph": [
{
"@context": "https://schema.org",
"@type": "SiteNavigationElement",
"name": "Blog",
"url": "{{url}}/blog"
},
{
"@context": "https://schema.org",
"@type": "SiteNavigationElement",
"name": "Contact",
"url": "{{url}}/contact"
}
]
}
]

View File

@ -2,6 +2,7 @@
"@context": "http://www.schema.org", "@context": "http://www.schema.org",
"@type": "person", "@type": "person",
"name": "Evan Pratten", "name": "Evan Pratten",
"alternateName": "ewpratten",
"nationality": "Canadian", "nationality": "Canadian",
"jobTitle": "Pipeline Software Developer", "jobTitle": "Pipeline Software Developer",
"description":"Software Developer", "description":"Software Developer",
@ -67,5 +68,5 @@
"https://twitter.com/ewpratten", "https://twitter.com/ewpratten",
"https://www.wikidata.org/wiki/Q111170999" "https://www.wikidata.org/wiki/Q111170999"
], ],
"mainEntity": "https://www.wikidata.org/wiki/Q111170999" "mainEntityOfPage": "True"
} }

View File

@ -14,20 +14,16 @@
{% if person_ld %}{{person_ld | safe}}{% endif %} {% if person_ld %}{{person_ld | safe}}{% endif %}
</script> </script>
<script type="application/ld+json"> <script type="application/ld+json">
{ {# Import our template file #}
"@context": "https://schema.org", {% set template = load_data(path="jsonld_templates/website.jsonld") %}
"@type": "WebSite", {# Now we can fill in any additional data #}
"url": "https://va3zza.com/", {{ template |
"about": "{{config.description}}", replace(from="{{url}}", to=config.base_url) |
"potentialAction": [{ replace(from="{{title}}", to=section.title) |
"@type": "SearchAction", replace(from="{{description}}", to=config.description) |
"target": { replace(from="{{avatar}}", to=config.extra.profile_photo) |
"@type": "EntryPoint", safe
"urlTemplate": "https://va3zza.com/search?q={search_term_string}" }}
},
"query-input": "required name=search_term_string"
}]
}
</script> </script>
{% endblock head %} {% endblock head %}