Fix sidebar sort ; better HTML for images

This commit is contained in:
Cyrille L 2022-04-15 11:49:35 +02:00
parent 83393ece6f
commit d62043ac29
5 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
Package: egsl Package: egsl
Version: 0.0.31 Version: 0.0.32
Section: custom Section: custom
Priority: optional Priority: optional
Architecture: all Architecture: all

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
# Version: 0.0.31 # Version: 0.0.32
# file: gsl # file: gsl
# Folder: /usr/local/bin # Folder: /usr/local/bin
# By echolib # By echolib

View File

@ -292,5 +292,5 @@ while read -r "postroller"
do do
cat "$gsl_dir_domain_listings/$postroller" \ cat "$gsl_dir_domain_listings/$postroller" \
>> "$gsl_dir_domain_tpl/last-posts-list.html" >> "$gsl_dir_domain_tpl/last-posts-list.html"
done < <(ls -1 "$gsl_dir_domain_listings/" | sort -r) done < <(ls -1X "$gsl_dir_domain_listings/")
} }

View File

@ -627,11 +627,11 @@ do
gsl_html_src="src=\"$gsl_uri/images/$gsl_post_hf_2\"" gsl_html_src="src=\"$gsl_uri/images/$gsl_post_hf_2\""
gsl_html_alt="alt=\"$gsl_post_hf_3\" title=\"$gsl_post_hf_3\"" gsl_html_alt="alt=\"$gsl_post_hf_3\" title=\"$gsl_post_hf_3\""
[[ "$width" ]] && gsl_html_width="style=\"width:${width}px;\"" [[ "$width" ]] && gsl_html_width=" style=\"width:${width}px;\""
[[ "$height" ]] && gsl_html_height="style=\"height:${height}px;\"" [[ "$height" ]] && gsl_html_height=" style=\"height:${height}px;\""
gsl_html_image=` gsl_html_image=`
printf '%s %s %s %s %s' \ printf '%s %s %s%s%s' \
"<img $gsl_html_src" \ "<img $gsl_html_src" \
"$gsl_html_class" \ "$gsl_html_class" \
"$gsl_html_alt" \ "$gsl_html_alt" \

View File

@ -10,7 +10,7 @@
gsl__sidebar() { gsl__sidebar() {
case "$2" in case "$2" in
"") "")
ls -1 "$gsl_dir_domain_listings" | sort -r ls -1X "$gsl_dir_domain_listings"
exit exit
;; ;;