Browse Source

update README

alswl 10 years ago
parent
commit
24ce7226c1
2 changed files with 6 additions and 2 deletions
  1. 6 1
      footer_insert/README.md
  2. 0 1
      footer_insert/footer_insert.py

+ 6 - 1
footer_insert/README.md

@@ -2,8 +2,13 @@
 
 This plugin allows you to insert a `FOOTER_INSERT_HTML` to the end of the blog.
 
-And you shoud add this to your template:
 
+## Usage
+
+1. Insert `FOOTER_INSERT_HTML` to your `pelicanconf.py`. You can use
+title / url / author / authors / slug / category / summary
+/ date infomation in the config like this: `%(title)s`.
+2. Insert this code to your artical template file, eg. `templates/article.html`:
 ```
 {% if article.footer_insert_html %}
   {{ article.footer_insert_html }}

+ 0 - 1
footer_insert/footer_insert.py

@@ -20,7 +20,6 @@ def add_footer(content):
         'slug': content.slug,
         'category': content.category,
         'summary': content.summary,
-        'authors': ','.join([x.name for x in content.tags]),
     }
     if hasattr(content, 'date'):
         data_dict['date'] = content.date