From 9f5162371323562623bae42b0476bd8b9a4a5e92 Mon Sep 17 00:00:00 2001 From: Jefferson Julio Date: Mon, 31 May 2021 19:16:12 -0300 Subject: Add more HTML metadata, re-format some text --- components/post-preview.sh | 4 ++-- config.sh | 5 +++++ footer.sh | 13 ++++++++++--- index.sh | 25 ++++++++++++------------- nav.sh | 24 ++++++++++++++++++------ pages/article.sh | 2 +- pages/home.sh | 16 ++++++++++------ static/favicon.png | Bin 0 -> 10091 bytes static/header.js | 29 ++++++++++++++++++++++++++--- static/manifest.json | 2 +- static/navigator.js | 2 ++ static/styles.css | 9 +++++++-- utils/parse-article.sh | 3 +++ 13 files changed, 97 insertions(+), 37 deletions(-) create mode 100644 static/favicon.png diff --git a/components/post-preview.sh b/components/post-preview.sh index 2708060..9e5bb97 100755 --- a/components/post-preview.sh +++ b/components/post-preview.sh @@ -5,7 +5,7 @@ DO_NOT_PROCESS_HTML=true source $SCRIPT_DIR/utils/parse-article.sh cat <
-
$ stat -c "%w" \\
> $ARTICLE_FILE_SANITIZED
+
$ARTICLE_FILE
$ARTICLE_BYTES
@@ -20,7 +20,7 @@ cat <$(strip-html-tags "$ARTICLE_CONTENT" | head -c 120)...

- Ler artigo completo + Ler artigo completo POST diff --git a/config.sh b/config.sh index 4cfed05..cfc02c1 100755 --- a/config.sh +++ b/config.sh @@ -6,3 +6,8 @@ # Folder where posts are stored, must be relative and suffed by a slash ARTICLES_PATH=artigos/ + +# Supported article file extensions, must be separated by vertical bar +# Exemple +# ARTICLES_EXTS="txt|html|md" +ARTICLES_EXTS="txt|html|md" diff --git a/footer.sh b/footer.sh index e7790cd..9ae32d6 100755 --- a/footer.sh +++ b/footer.sh @@ -11,13 +11,17 @@ cat <