From cade848b78d7f06b69a195f5a543b23c25eedd14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tel=C3=A9rico=20Jones?= Date: Sat, 29 May 2021 21:09:08 -0300 Subject: blog.sh project start --- pages/home.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 pages/home.sh (limited to 'pages/home.sh') diff --git a/pages/home.sh b/pages/home.sh new file mode 100755 index 0000000..ebb399d --- /dev/null +++ b/pages/home.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +print-all-articles () { + for i in $(find ./pages/articles -type f -name '*.txt'); do + ARTICLE_CONTENT=$(tail -n +3 $i) + cat < +
+
stat -c "%w %z" $i
+ +
+ +

$(echo "$ARTICLE_CONTENT" | head -c 120)...

+ + Ler artigo completo + +POST + done +} + +cat < + $(print-all-articles) + +PAGE -- cgit v1.2.3