diff options
Diffstat (limited to 'pages/home.sh')
-rwxr-xr-x | pages/home.sh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/pages/home.sh b/pages/home.sh index 02adf53..49094fc 100755 --- a/pages/home.sh +++ b/pages/home.sh @@ -3,20 +3,24 @@ welcome () { cat <<WELCOME <section class="conainer" id="welcome"> - <header> + <hgroup> <h1>Bem-vindo ao meu blog :3</h1> - <h4>Aqui mostro o meu trabalho e escrevo sobre programação.</h4> - </header> + <h4>Aqui escrevo sobre programação e mostro o meu trabalho.</h4> + </hgroup> + <hr/> </section> WELCOME } -print-all-articles () { +all-articles-sort-by-last-modification () { # Find all articles and sort by date of creation + cat <<HEADER + <h4>Últimas atividades</h4> +HEADER IFS=';' read -ra ARTICLE_LIST <<< "$( find $ARTICLES_PATH \ -type f \ - -name '*.txt' \ + -regex ".*\.$(scape-regex "($ARTICLES_EXTS)")" \ -printf "%T@ %p\n" | sort -rn | cut -b 23- | @@ -32,6 +36,6 @@ print-all-articles () { cat <<PAGE <article class="home-feed container"> $(welcome) - $(print-all-articles) + $(all-articles-sort-by-last-modification) </article> PAGE |