This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/articles/templates/articles/snippets/page_metadata.html

11 lines
519 B
HTML

{% if article %}
<meta name="keywords" content="{{ article.keywords }}">
<meta name="description" content="{{ article.get_description }}">
<meta property="og:title" content="{{ article.title }}" />
<meta property="og:type" content="article">
<meta property="og:description" content="{{ article.get_description }}">
<meta property="og:site_name" content="{{ blog_title }}">
{% endif %}
{% if open_graph_image_url %}
<meta property="og:image" content="{{ open_graph_image_url }}">
{% endif %}