meta tags post template

This commit is contained in:
2020-12-07 12:00:29 +00:00
parent 3b09a0b459
commit fb97ccb25b
2 changed files with 11 additions and 0 deletions

View File

@@ -9,6 +9,8 @@
<title>FET</title> <title>FET</title>
<link rel="stylesheet" href="{% static 'app.css' %}"> <link rel="stylesheet" href="{% static 'app.css' %}">
<script src="https://kit.fontawesome.com/dbe3c89a9d.js" crossorigin="anonymous"></script> <script src="https://kit.fontawesome.com/dbe3c89a9d.js" crossorigin="anonymous"></script>
{% block extraheader %}
{% endblock %}
</head> </head>
<body style="min-height:100%; position:relative"> <body style="min-height:100%; position:relative">

View File

@@ -1,6 +1,15 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% load post_helpers %} {% load post_helpers %}
{% load admin_urls %} {% load admin_urls %}
{% block extraheader %}
<meta content="{{ post.imageurl }}" property="og:image">
<meta content="{{ post.title }}" property="og:title">
<meta content="article" property="og:type">
<meta content="" property="og:url">
{% endblock %}
{% block content %} {% block content %}
<div class="large-article-header" style="background-image:url('{{ post.imageurl }}')"> <div class="large-article-header" style="background-image:url('{{ post.imageurl }}')">