feat: render keywords for each article

This commit is contained in:
Kilerd Chan 2019-04-28 16:50:44 +08:00
parent 6df1e3743e
commit 3ef5fe038b
2 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}{{ article.article.title }}{% endblock title %} {% block title %}{{ article.article.title }}{% endblock title %}
{% block keywords %}{{ article.article.keywords| join(sep=", ") }}{% endblock keywords %}
{% block body %} {% block body %}
<section class="full-page"> <section class="full-page">

View File

@ -4,6 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="keywords" content="{% block keywords %}{% endblock keywords %}" />
<link rel="stylesheet" href="/statics/style.css"> <link rel="stylesheet" href="/statics/style.css">
<title>{% block title %}Rubble{% endblock title %}</title> <title>{% block title %}Rubble{% endblock title %}</title>
</head> </head>