Render some ldjson info for some pages
This commit is contained in:
parent
f20bffe3da
commit
f66f687b46
@ -27,6 +27,22 @@ MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], displayMat
|
|||||||
<meta property="description" content="{{config.description}}" />
|
<meta property="description" content="{{config.description}}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<meta property="article:published_time" content="{{page.date}}T00:00:00+00:00" />
|
<meta property="article:published_time" content="{{page.date}}T00:00:00+00:00" />
|
||||||
|
|
||||||
|
{# Handle article listing #}
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "NewsArticle",
|
||||||
|
"headline": "{{page.title}}",
|
||||||
|
"datePublished": "{{page.date}}T00:00:00+00:00",
|
||||||
|
"author": [{
|
||||||
|
"@type": "Person",
|
||||||
|
"name": "Evan Pratten",
|
||||||
|
"url": "https://va3zza.com"
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
{% endblock head %}
|
{% endblock head %}
|
||||||
|
|
||||||
{% block profile %}
|
{% block profile %}
|
||||||
|
@ -13,6 +13,37 @@
|
|||||||
<meta property="og:description" content="{{config.description}}" />
|
<meta property="og:description" content="{{config.description}}" />
|
||||||
<meta property="description" content="{{config.description}}" />
|
<meta property="description" content="{{config.description}}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{# Handle listing blog posts nicely in search #}
|
||||||
|
{% if section.extra.inject_blog_posts %}
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context":"https://schema.org",
|
||||||
|
"@type":"ItemList",
|
||||||
|
"itemListElement":[
|
||||||
|
{% for page in section.pages %}
|
||||||
|
{% if not page.extra.hidden %}
|
||||||
|
{
|
||||||
|
"@type":"ListItem",
|
||||||
|
"position": "{{loop.index}}",
|
||||||
|
"item": {
|
||||||
|
"@type": "Article",
|
||||||
|
"headline": "{{page.title}}",
|
||||||
|
"url":"https://va3zza.com{{page.path | safe}}",
|
||||||
|
"author": [{
|
||||||
|
"@type": "Person",
|
||||||
|
"name": "Evan Pratten",
|
||||||
|
"url": "https://va3zza.com"
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
} {% if not loop.last %},{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
]
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
{% endif %}
|
||||||
{% endblock head %}
|
{% endblock head %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user