blob: dbbf66384c570529fdf6b2645cdd20caca318a5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
source $SCRIPT_DIR/utils/parse-article.sh
cat <<POST
<section class="post-preview">
<div class="post-header-preview">
<h5 class="post-title">$ stat -c "%w" \\<br/> > $ARTICLE_FILE</h5>
<small>$ARTICLE_BYTES</small> <br/>
<time>$(stat --format="Criado em: %w" $ARTICLE_FILE)</time>
<ul class="tags">
$(
for i in "${ARTICLE_TAGS[@]}"; do
echo "<li class="tag">$i</li>"
done
)
</ul>
</div>
<p>$(strip-html-tags "$ARTICLE_CONTENT" | head -c 120)...</p>
<a href="/$ARTICLE_FILE">Ler artigo completo</a>
</section>
POST
|