sc0ttj / mdsh

A simple static site generator, using Markdown and Bash
https://sc0ttj.github.io/mdsh/
10 stars 0 forks source link

Create `list_post_preview` function #5

Closed sc0ttj closed 5 years ago

sc0ttj commented 5 years ago

Give it an .md file as $1, and will print HTML containing post title, truncated description, some meta, tags ... all in a nicely formatted way.

This func should be used to generate proper lists of posts, not only the links with titles currently used:

<div class="post-preview">
<h2>$post_title<small> - $date</small></h2> 
<p>$time_to_read</p>
<p>$truncated_post_descr</p>
</div>

..or something like that.