Fix: FR date on template only

This commit is contained in:
Cyrille L 2022-06-24 15:22:25 +02:00
parent d895976653
commit 9407eda9d5
6 changed files with 13 additions and 7 deletions

View File

@ -4,6 +4,10 @@ GSL changes from releases. You can send an issue :
- repo: https://git.a-lec.org/echolib/gsl/-/issues - repo: https://git.a-lec.org/echolib/gsl/-/issues
- Contact xmpp: im@echolib.re - Contact xmpp: im@echolib.re
## [0.1.6]
- fix: FR date on template only ; replace "-" with "/"
## [0.1.5} ## [0.1.5}
- fix: sidebar item link with add/replace - fix: sidebar item link with add/replace

View File

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

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
# Version: 0.1.5 # Version: 0.1.6
# file: gsl # file: gsl
# Folder: /usr/local/bin # Folder: /usr/local/bin
# By echolib (XMPP: im@echolib.re) # By echolib (XMPP: im@echolib.re)

View File

@ -4,6 +4,10 @@ GSL changes from releases. You can send an issue :
- repo: https://git.a-lec.org/echolib/gsl/-/issues - repo: https://git.a-lec.org/echolib/gsl/-/issues
- Contact xmpp: im@echolib.re - Contact xmpp: im@echolib.re
## [0.1.6]
- fix: FR date on template only ; replace "-" with "/"
## [0.1.5} ## [0.1.5}
- fix: sidebar item link with add/replace - fix: sidebar item link with add/replace

View File

@ -84,6 +84,7 @@ if [[ `grep -i "fr" <<<"$site_lang"` ]];then
gsl_by="par" gsl_by="par"
gsl_read="Lire l'article de" gsl_read="Lire l'article de"
gsl_rss_info="Tous les titres de" gsl_rss_info="Tous les titres de"
gsl_date="${article_Date//-//}"
else else
gsl_welcome="Welcome page of" gsl_welcome="Welcome page of"
@ -94,6 +95,7 @@ else
gsl_by="by" gsl_by="by"
gsl_read="Read the post of" gsl_read="Read the post of"
gsl_rss_info="All titles from" gsl_rss_info="All titles from"
gsl_date="${article_Date}"
fi fi
} }
@ -142,7 +144,7 @@ $(create__HTML_header)
<article id="${site_css}_$article_Slug"> <article id="${site_css}_$article_Slug">
<div id="${site_css}_metas"> <div id="${site_css}_metas">
<p id="${site_css}_auteur">$gsl_written <strong>$article_Author</strong> - $article_Date</p> <p id="${site_css}_auteur">$gsl_written <strong>$article_Author</strong> $gsl_the $gsl_date</p>
</div> </div>
$(cat "$gsl_tmp_post") $(cat "$gsl_tmp_post")

View File

@ -633,7 +633,6 @@ unset ${!image_@}
link_class="${site_css}_image-link" link_class="${site_css}_image-link"
this_image=`grep -n "$gsl_mark_image:$header_f1" "$1" | head -n 1` this_image=`grep -n "$gsl_mark_image:$header_f1" "$1" | head -n 1`
[[ "$this_image" ]] || return [[ "$this_image" ]] || return
echo "$this_image"
# local link with "+" or external link if http* # local link with "+" or external link if http*
# $1: field # $1: field
@ -769,9 +768,6 @@ do
"$HTML_image" \ "$HTML_image" \
"</a>"` "</a>"`
fi fi
echo "$HTML_image"
echo
sed -i "${ln}s^$mark_image^$HTML_image^" "$1" sed -i "${ln}s^$mark_image^$HTML_image^" "$1"
done <<<"$this_image" done <<<"$this_image"