Merge branch 'raymondwanyoike-meta-description'

* raymondwanyoike-meta-description:
  Add META_DESCRIPTION option
main
Raymond Wanyoike 2014-08-08 20:03:56 +03:00
commit ad9e9c1851
2 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,7 @@ Pelican [documentation](http://docs.getpelican.com/en/latest/)
| LICENSE_NAME | TEXT | License (footer) |
| LICENSE_URL | URL | - |
| MENU_ITEMS | DICT | Menu items |
| META_DESCRIPTION | TEXT | Meta description |
| PROFILE_IMAGE | URL | Profile image |
| SHOW_ARTICLE_AUTHOR | BOOL | Show/hide author |
| SITE_SUBTEXT | TEXT | Header subtitle |

View File

@ -1,5 +1,11 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
<meta name="author" content="{{ AUTHOR }}">
<meta name="description" content="{{ META_DESCRIPTION|striptags }}">
{% endblock %}
{% block content %}
{% block page_title %}
<h1>All Articles</h1>