Add tests for SEO meta tags rendering and improve meta_tags.html formatting
All checks were successful
Deploy to Server / deploy (push) Successful in 11s
All checks were successful
Deploy to Server / deploy (push) Successful in 11s
This commit is contained in:
parent
70298fdd1e
commit
f8236034a3
2 changed files with 110 additions and 18 deletions
|
|
@ -41,12 +41,7 @@
|
|||
{% endif %}
|
||||
{% endif %}
|
||||
{# Twitter Card tags for rich previews #}
|
||||
<meta name="twitter:card"
|
||||
content="{% if page_image %}
|
||||
summary_large_image
|
||||
{% else %}
|
||||
summary
|
||||
{% endif %}" />
|
||||
<meta name="twitter:card" content="{% if page_image %}summary_large_image{% else %}summary{% endif %}" />
|
||||
<meta name="twitter:title" content="{% firstof page_title 'ttvdrops' %}" />
|
||||
<meta name="twitter:description"
|
||||
content="{% firstof page_description 'ttvdrops - Twitch and Kick drops.' %}" />
|
||||
|
|
@ -55,8 +50,7 @@
|
|||
{% if published_date %}<meta property="article:published_time" content="{{ published_date }}" />{% endif %}
|
||||
{% if modified_date %}<meta property="article:modified_time" content="{{ modified_date }}" />{% endif %}
|
||||
{# Canonical tag #}
|
||||
<link rel="canonical"
|
||||
href="{% firstof page_url request.build_absolute_uri %}" />
|
||||
<link rel="canonical" href="{% firstof page_url request.build_absolute_uri %}" />
|
||||
{# Pagination links (for crawler efficiency) #}
|
||||
{% if pagination_info %}
|
||||
{% for link in pagination_info %}<link rel="{{ link.rel }}" href="{{ link.url }}" />{% endfor %}
|
||||
|
|
@ -64,20 +58,12 @@
|
|||
{# Schema.org JSON-LD structured data #}
|
||||
{% if schema_data %}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
{
|
||||
schema_data | safe
|
||||
}
|
||||
}
|
||||
{{ schema_data|safe }}
|
||||
</script>
|
||||
{% endif %}
|
||||
{# Breadcrumb schema #}
|
||||
{% if breadcrumb_schema %}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
{
|
||||
breadcrumb_schema | safe
|
||||
}
|
||||
}
|
||||
{{ breadcrumb_schema|safe }}
|
||||
</script>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue