fix: Close div before <article>
This commit is contained in:
parent
3510254c14
commit
f89a3fb8e8
2
control
2
control
|
@ -1,5 +1,5 @@
|
||||||
Package: egsl
|
Package: egsl
|
||||||
Version: 0.0.8
|
Version: 0.0.9
|
||||||
Section: custom
|
Section: custom
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: all
|
Architecture: all
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Version: 0.0.8
|
# Version: 0.0.9
|
||||||
# file: gsl
|
# file: gsl
|
||||||
# Folder: /usr/local/bin
|
# Folder: /usr/local/bin
|
||||||
# By echolib
|
# By echolib
|
||||||
|
|
|
@ -254,6 +254,7 @@ cat << EOPAGE > "$gsl_srv_wip_page"
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
`cat "$gsl_a11y_post"`
|
`cat "$gsl_a11y_post"`
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<aside id="${gsl_site_css}_sidebar">
|
<aside id="${gsl_site_css}_sidebar">
|
||||||
|
|
|
@ -337,7 +337,6 @@ awk -F"<h" '{print $2}' \
|
||||||
<<< "$gsl_content_title" \
|
<<< "$gsl_content_title" \
|
||||||
| awk -F">" '{print $1}'`
|
| awk -F">" '{print $1}'`
|
||||||
|
|
||||||
|
|
||||||
gsl_html_div="<div class=\"${gsl_site_css}_content-p$gsl_title_n\">"
|
gsl_html_div="<div class=\"${gsl_site_css}_content-p$gsl_title_n\">"
|
||||||
sed -i "$(( $gsl_content_line_nbr + 1 ))i$gsl_html_div" \
|
sed -i "$(( $gsl_content_line_nbr + 1 ))i$gsl_html_div" \
|
||||||
"$gsl_tmp_post"
|
"$gsl_tmp_post"
|
||||||
|
@ -361,8 +360,8 @@ grep -n "$gsl_test_line" "$gsl_tmp_post" \
|
||||||
| tail -n 1`
|
| tail -n 1`
|
||||||
|
|
||||||
[[ "$gsl_content_title" == "$gsl_content_same_title" ]] \
|
[[ "$gsl_content_title" == "$gsl_content_same_title" ]] \
|
||||||
&& echo "</div>" >> "$gsl_tmp_post" \
|
|
||||||
&& return
|
&& return
|
||||||
|
|
||||||
! [[ "$gsl_content_title" ]] && return
|
! [[ "$gsl_content_title" ]] && return
|
||||||
|
|
||||||
gsl_content_line_nbr=`
|
gsl_content_line_nbr=`
|
||||||
|
@ -371,13 +370,13 @@ awk -F: '{print $1}' \
|
||||||
|
|
||||||
while read -r "gsl_search_line_nbr" "gsl_search_line"
|
while read -r "gsl_search_line_nbr" "gsl_search_line"
|
||||||
do
|
do
|
||||||
case "$gsl_search_line" in
|
case "$gsl_search_line" in
|
||||||
"<h"*)
|
"<h"*)
|
||||||
sed -i "${gsl_search_line_nbr}i</div>" "$gsl_tmp_post"
|
sed -i "${gsl_search_line_nbr}i</div>" "$gsl_tmp_post"
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
*) continue ;;
|
*) continue ;;
|
||||||
esac
|
esac
|
||||||
done < <(awk -v l="$gsl_content_line_nbr" \
|
done < <(awk -v l="$gsl_content_line_nbr" \
|
||||||
'NR > l {print NR,$0}' \
|
'NR > l {print NR,$0}' \
|
||||||
"$gsl_tmp_post")
|
"$gsl_tmp_post")
|
||||||
|
|
Loading…
Reference in New Issue