Fix sidebar sort ; better HTML for images
This commit is contained in:
parent
83393ece6f
commit
d62043ac29
2
control
2
control
|
@ -1,5 +1,5 @@
|
|||
Package: egsl
|
||||
Version: 0.0.31
|
||||
Version: 0.0.32
|
||||
Section: custom
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
# Version: 0.0.31
|
||||
# Version: 0.0.32
|
||||
# file: gsl
|
||||
# Folder: /usr/local/bin
|
||||
# By echolib
|
||||
|
|
|
@ -292,5 +292,5 @@ while read -r "postroller"
|
|||
do
|
||||
cat "$gsl_dir_domain_listings/$postroller" \
|
||||
>> "$gsl_dir_domain_tpl/last-posts-list.html"
|
||||
done < <(ls -1 "$gsl_dir_domain_listings/" | sort -r)
|
||||
done < <(ls -1X "$gsl_dir_domain_listings/")
|
||||
}
|
||||
|
|
|
@ -627,11 +627,11 @@ do
|
|||
|
||||
gsl_html_src="src=\"$gsl_uri/images/$gsl_post_hf_2\""
|
||||
gsl_html_alt="alt=\"$gsl_post_hf_3\" title=\"$gsl_post_hf_3\""
|
||||
[[ "$width" ]] && gsl_html_width="style=\"width:${width}px;\""
|
||||
[[ "$height" ]] && gsl_html_height="style=\"height:${height}px;\""
|
||||
[[ "$width" ]] && gsl_html_width=" style=\"width:${width}px;\""
|
||||
[[ "$height" ]] && gsl_html_height=" style=\"height:${height}px;\""
|
||||
|
||||
gsl_html_image=`
|
||||
printf '%s %s %s %s %s' \
|
||||
printf '%s %s %s%s%s' \
|
||||
"<img $gsl_html_src" \
|
||||
"$gsl_html_class" \
|
||||
"$gsl_html_alt" \
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
gsl__sidebar() {
|
||||
case "$2" in
|
||||
"")
|
||||
ls -1 "$gsl_dir_domain_listings" | sort -r
|
||||
ls -1X "$gsl_dir_domain_listings"
|
||||
exit
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in New Issue