# Command line boilerplate template for posts

**URL:** <https://zola.discourse.group/t/command-line-boilerplate-template-for-posts/2884>\
**Category:** Uncategorized\
**Created:** [November 30, 2025, 12:24pm UTC](https://zola.discourse.group/t/command-line-boilerplate-template-for-posts/2884 "2025-11-30T12:24:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbeiapc](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jbeiapc](https://zola.discourse.group/u/jbeiapc)\
**Post date:** [November 30, 2025, 12:24pm UTC](https://zola.discourse.group/t/command-line-boilerplate-template-for-posts/2884/1 "2025-11-30T12:24:05Z")

</div>

A quick and dirty post template generator I made for myself to save a little time on boilerplate. Quick an dirty inasmuch as there is little input checking and a person could DoS the system by using /dev/zero or similar as an input filename. Currently not at all suitable for a situation where a person cannot implicitly trust users. Shared in case it saves someone time, the code is logically structured but not entirely efficient. The basic usage is:

> $ cd my\_site/content  
> $ mkdir mynewpost  
> $ cd mynewpost  
> $ mkdir images  
> (copy images to the images folder)  
> $ generaltemplate \> index.md

I’m using the, excellent, Abridge Theme for something so it’s targeted at that but the program should be easily adapted to any other themes. I’ve uploaded the code here, with more details:

> **[generatemplate](https://codeberg.org/jbeiapc/generatemplate)**
>
> A time saving template, written in Rust, for posts for the Zola the Rust based static site engine for the Abridge Template. Flexible/basic enough to be adaptable for other templates.

---

<div class="post-metadata">

**Author:** ![jbeiapc](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jbeiapc](https://zola.discourse.group/u/jbeiapc)\
**Post date:** [November 30, 2025, 3:11pm UTC](https://zola.discourse.group/t/command-line-boilerplate-template-for-posts/2884/2 "2025-11-30T15:11:50Z")

</div>

I fixed the problem with /dev/zero.
