fix: Close div before <article>

This commit is contained in:
Cyrille L 2022-04-07 18:47:48 +02:00
parent 3510254c14
commit f89a3fb8e8
4 changed files with 11 additions and 11 deletions

View File

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

View File

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

View File

@ -254,6 +254,7 @@ cat << EOPAGE > "$gsl_srv_wip_page"
</div>
`cat "$gsl_a11y_post"`
</div>
</article>
<aside id="${gsl_site_css}_sidebar">

View File

@ -337,7 +337,6 @@ awk -F"<h" '{print $2}' \
<<< "$gsl_content_title" \
| awk -F">" '{print $1}'`
gsl_html_div="<div class=\"${gsl_site_css}_content-p$gsl_title_n\">"
sed -i "$(( $gsl_content_line_nbr + 1 ))i$gsl_html_div" \
"$gsl_tmp_post"
@ -361,8 +360,8 @@ grep -n "$gsl_test_line" "$gsl_tmp_post" \
| tail -n 1`
[[ "$gsl_content_title" == "$gsl_content_same_title" ]] \
&& echo "</div>" >> "$gsl_tmp_post" \
&& return
! [[ "$gsl_content_title" ]] && return
gsl_content_line_nbr=`