Add meta tags and optimize loading

This commit is contained in:
2020-09-04 00:40:33 +00:00
parent 975484a03c
commit 809806c8cd
6 changed files with 55 additions and 22 deletions

View File

@@ -1,5 +1,29 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %}
{% block head %}
{{ super() }}
{% if article.date %}
<meta name="date" content="{{article.date}}" />
{% endif %}
{% if article.summary %}
<meta name="description" content="{{article.summary|striptags}}" />
<meta name="summary" content="{{article.summary|striptags}}" />
{% endif %}
{% if article.category %}
<meta name="category" content="{{article.category}}" />
{% endif %}
{% for tag in article.tags %}
<meta name="tags" content="{{tag}}" />
{% endfor %}
{% endblock %}
{% block content %}
<p><a href="/">← Return to Home</a></p>
<header>