I think ... - automationhttps://blog.kmonsoor.com/2015-12-21T00:44:00+06:00Pelican blog : Create a prefilled MarkDown(*.md) post2015-12-21T00:44:00+06:002015-12-21T00:44:00+06:00Khaled Monsoortag:blog.kmonsoor.com,2015-12-21:/pelican-create-a-prefilled-markdown-post/<p>While creating a blog post using Pelican, don’t type the boring staff again and again …</p><p>I use this Python script to jump-start a new post. Nothing fancy, but useful.<br>
Especially, if you are like me; hate to do same staff repeatedly. </p>
<p>Clone this script in your blog’s working folder on your pc. Once and forever.</p>
<div class="highlight"><pre><span></span><code><span class="linenos" data-linenos="1 "></span>$ git clone https://gist.github.com/942d661b4666ddce352f.git
</code></pre></div>
<p>Now, whenever you create a new post, run it like:</p>
<div class="highlight"><pre><span></span><code><span class="linenos" data-linenos="1 "></span>$ python2 ./pelican_new_MD_post_template.py 'your new blog post title'
</code></pre></div>
<p>Then, it will create a empty post in <code>./content/articles/</code> folder, by default.<br>
Now, edit that post and blog away.</p>
<p>Here’s the script:</p>
<script src="https://gist.github.com/kmonsoor/942d661b4666ddce352f.js"></script>
<p>Thanks for being here. Got any improvement suggestions? Plz let me know by comment on either here or on the Github gist.</p>