fix a few bugs

This commit is contained in:
Yann Esposito (Yogsototh) 2020-01-04 15:29:27 +01:00
parent a19d95a38c
commit 9e1cbf9e52
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646
4 changed files with 5 additions and 5 deletions

View file

@ -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<category>%s</category>" $keyword

View file

@ -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}') )

View file

@ -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

View file

@ -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