update keywords and description

liangliang 8 years ago
parent f5c292a555
commit ef1795812c

@ -21,7 +21,7 @@ olefile==0.45.1
packaging==17.1
Pillow==5.1.0
Pygments==2.2.0
PyMySQL==0.8.0
PyMySQL==0.8.1
pyparsing==2.2.0
python-memcached==1.59
python-slugify==1.2.5
@ -34,6 +34,6 @@ sqlparse==0.2.4
Unidecode==1.0.22
urllib3==1.22
webencodings==0.5.1
WeRoBot==1.4.0
WeRoBot==1.4.1
Whoosh==2.7.4
xmltodict==0.11.0

@ -6,7 +6,7 @@
<meta property="og:title" content="{{ article.title }}"/>
<meta property="og:description" content="{{ article.body|custom_markdown|striptags|truncatewords:20 }}"/>
<meta property="og:description" content="{{ article.body|custom_markdown|striptags|truncatewords:1 }}"/>
<meta property="og:url"
content="{{ article.get_full_url }}"/>
<meta property="article:published_time" content="{% datetimeformat article.pub_time %}"/>
@ -17,6 +17,14 @@
<meta property="article:tag" content="{{ t.name }}"/>
{% endfor %}
<meta property="og:site_name" content="{{ SITE_NAME }}"/>
<meta name="description" content="{{ article.body|custom_markdown|striptags|truncatewords:1 }}"/>
{% if article.tags %}
<meta name="keywords" content="{{ article.tags.all|join:"," }}"/>
{% else %}
<meta name="keywords" content="{{ SITE_KEYWORDS }}"/>
{% endif %}
{% endblock %}
{% block content %}
<div id="primary" class="site-content">

@ -21,7 +21,7 @@ olefile==0.45.1
packaging==17.1
Pillow==5.1.0
Pygments==2.2.0
PyMySQL==0.8.0
PyMySQL==0.8.1
pyparsing==2.2.0
python-slugify==1.2.5
pytz==2018.4
@ -33,6 +33,6 @@ sqlparse==0.2.4
Unidecode==1.0.22
urllib3==1.22
webencodings==0.5.1
WeRoBot==1.4.0
WeRoBot==1.4.1
Whoosh==2.7.4
xmltodict==0.11.0

Loading…
Cancel
Save