From 0ee4ccc582d3e955852aef5f077d65407246cd60 Mon Sep 17 00:00:00 2001 From: Marvin Steadfast Date: Mon, 5 Oct 2015 15:46:31 +0200 Subject: [PATCH] enabled gram plugin and modified cookiecutter script --- newpost.py | 1 + pelicanconf.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/newpost.py b/newpost.py index 13b43f2..2cbfdc4 100644 --- a/newpost.py +++ b/newpost.py @@ -6,5 +6,6 @@ import pytz cookiecutter( 'cookiecutter-new-post', + overwrite_if_exists=True, extra_context={ 'date': datetime.utcnow().replace(tzinfo=pytz.utc).astimezone(get_localzone()).strftime('%Y-%m-%d %H:%M')}) diff --git a/pelicanconf.py b/pelicanconf.py index e28630d..075134c 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -65,7 +65,7 @@ ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html' PLUGIN_PATHS = ['pelican-plugins'] PLUGINS = ['liquid_tags.youtube', 'liquid_tags.vimeo', 'liquid_tags.notebook', 'liquid_tags.flickr', 'liquid_tags.soundcloud', 'liquid_tags.giphy', - 'liquid_tags.audio', 'tipue_search'] + 'liquid_tags.audio', 'liquid_tags.gram', 'tipue_search'] NOTEBOOK_DIR = 'notebooks' EXTRA_HEADER = open('_nb_header.html').read().replace(