From 9e1cbf9e52ee2f7e662b268aee5e6e22a86530ee Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Sat, 4 Jan 2020 15:29:27 +0100 Subject: [PATCH] fix a few bugs --- mkrss.sh | 2 +- optim-classes.sh | 2 +- pre-deploy.sh | 4 ++-- src/posts/0010-Haskell-Now/index.org | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mkrss.sh b/mkrss.sh index 8c4149f..80c4111 100755 --- a/mkrss.sh +++ b/mkrss.sh @@ -37,7 +37,7 @@ findtitle(){ < $1 hxselect -c $titleaccessor } getcontent(){ < $1 hxselect $contentaccessor | \ perl -pe 'use URI; $base="'$2'"; s# (href|src)="((?!https?://)[^"]*)"#" ".$1."=\"".URI->new_abs($2,$base)->as_string."\""#eig' } -findkeywords(){ < $1 hxselect -c $keywordsaccessor | sed 's/,//g' } +findkeywords(){ < $1 hxselect -c $keywordsaccessor | sed 's/,/ /g' } mkcategories(){ for keyword in $*; do printf "\\n%s" $keyword diff --git a/optim-classes.sh b/optim-classes.sh index ebb4a70..4cb9d0c 100755 --- a/optim-classes.sh +++ b/optim-classes.sh @@ -15,7 +15,7 @@ retrieve_classes_in_css () { classes=( $( {retrieve_classes_in_html; retrieve_classes_in_css}| \ egrep "^CLASS: [^ ]*$" |\ sort -u | \ - awk 'length($2)>2 && $2 !~ /(web-file-size|example|src)/ {print length($2),$2}'|\ + awk 'length($2)>2 && $2 !~ /(web-file-size|article-date|example|src)/ {print length($2),$2}'|\ sort -rn | \ awk '{print $2}') ) diff --git a/pre-deploy.sh b/pre-deploy.sh index 65945f1..0d16574 100755 --- a/pre-deploy.sh +++ b/pre-deploy.sh @@ -4,9 +4,9 @@ echo "Optim HTML size" ./optim-html.sh echo "Gen themes clones" ./dup-for-themes.sh -echo "Building RSS" -./mkrss.sh echo "Optim Classes accross CSS/HTML" ./optim-classes.sh echo "Update file size" ./update-file-size.sh +echo "Building RSS" +./mkrss.sh diff --git a/src/posts/0010-Haskell-Now/index.org b/src/posts/0010-Haskell-Now/index.org index c454166..1a6a241 100644 --- a/src/posts/0010-Haskell-Now/index.org +++ b/src/posts/0010-Haskell-Now/index.org @@ -3,7 +3,7 @@ #+date: [2019-12-15 Sun] #+author: Yann Esposito #+EMAIL: yann@esposito.host -#+keywords: Haskell, programming, functional, tutorial | +#+keywords: Haskell, programming, functional, tutorial #+DESCRIPTION: A very dense introduction and Haskell tutorial. Brace yourself. #+OPTIONS: auto-id:t toc:t #+STARTUP: overview