Add image dimensions to models, and add backfill command
This commit is contained in:
parent
85bdf572c5
commit
4727657285
7 changed files with 299 additions and 7 deletions
|
|
@ -4,6 +4,8 @@
|
|||
{# - page_title: str - Page title (defaults to "ttvdrops") #}
|
||||
{# - page_description: str - Page description (defaults to site description) #}
|
||||
{# - page_image: str - Image URL for og:image (optional) #}
|
||||
{# - page_image_width: int - Image width in pixels (optional) #}
|
||||
{# - page_image_height: int - Image height in pixels (optional) #}
|
||||
{# - page_url: str - Full URL for og:url and canonical (defaults to request.build_absolute_uri) #}
|
||||
{# - og_type: str - OpenGraph type (defaults to "website") #}
|
||||
{# - schema_data: str - JSON-LD schema data serialized as string (optional) #}
|
||||
|
|
@ -36,8 +38,10 @@
|
|||
content="{% firstof page_url request.build_absolute_uri %}" />
|
||||
{% if page_image %}
|
||||
<meta property="og:image" content="{{ page_image }}" />
|
||||
<meta property="og:image:width" content="1200" />
|
||||
<meta property="og:image:height" content="630" />
|
||||
{% if page_image_width and page_image_height %}
|
||||
<meta property="og:image:width" content="{{ page_image_width }}" />
|
||||
<meta property="og:image:height" content="{{ page_image_height }}" />
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{# Twitter Card tags for rich previews #}
|
||||
<meta name="twitter:card"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue