diff options
author | Jefferson Julio <[email protected]> | 2021-05-30 22:53:32 -0300 |
---|---|---|
committer | Jefferson Julio <[email protected]> | 2021-05-30 22:53:32 -0300 |
commit | 381bff129b70471e86e99a2d6b6a7e090f13287e (patch) | |
tree | 35d383b4ec622efd8fbbd49a72c44a5561a04f92 /components | |
parent | e9c35a9eff9e0881df7d6a6e8d17b70ac37ad0fe (diff) | |
download | blog.sh-381bff129b70471e86e99a2d6b6a7e090f13287e.tar.bz2 blog.sh-381bff129b70471e86e99a2d6b6a7e090f13287e.zip |
Better article parsing, support for article code parsing (add line numbers to code blocks)
Diffstat (limited to 'components')
-rwxr-xr-x | components/post-preview.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/post-preview.sh b/components/post-preview.sh index dbbf663..2708060 100755 --- a/components/post-preview.sh +++ b/components/post-preview.sh @@ -1,13 +1,13 @@ #!/bin/bash -source $SCRIPT_DIR/utils/parse-article.sh +DO_NOT_PROCESS_HTML=true 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> + <h5 class="post-title">$ stat -c "%w" \\<br/> > $ARTICLE_FILE_SANITIZED</h5> <small>$ARTICLE_BYTES</small> <br/> - <time>$(stat --format="Criado em: %w" $ARTICLE_FILE)</time> + <time>$ARTICLE_TIME</time> <ul class="tags"> $( |