aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorJefferson Julio <[email protected]>2021-05-31 19:16:12 -0300
committerJefferson Julio <[email protected]>2021-05-31 19:16:12 -0300
commit9f5162371323562623bae42b0476bd8b9a4a5e92 (patch)
tree9375011fbff065938b1878cbf5198247a8a0dbbf /components
parent381bff129b70471e86e99a2d6b6a7e090f13287e (diff)
downloadblog.sh-9f5162371323562623bae42b0476bd8b9a4a5e92.tar.bz2
blog.sh-9f5162371323562623bae42b0476bd8b9a4a5e92.zip
Add more HTML metadata, re-format some text
Diffstat (limited to 'components')
-rwxr-xr-xcomponents/post-preview.sh4
1 files changed, 2 insertions, 2 deletions
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 <<POST
<section class="post-preview">
<div class="post-header-preview">
- <h5 class="post-title">$ stat -c "%w" \\<br/> &gt;&ensp;$ARTICLE_FILE_SANITIZED</h5>
+ <h5 class="post-title"><a href="$ARTICLE_URL">$ARTICLE_FILE</a></h5>
<small>$ARTICLE_BYTES</small> <br/>
<time>$ARTICLE_TIME</time>
@@ -20,7 +20,7 @@ cat <<POST
<p>$(strip-html-tags "$ARTICLE_CONTENT" | head -c 120)...</p>
- <a href="/$ARTICLE_FILE">Ler artigo completo</a>
+ <a href="$ARTICLE_URL">Ler artigo completo</a>
</section>
POST