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
- Contact xmpp: im@echolib.re
## [0.1.6]
- fix: FR date on template only ; replace "-" with "/"
## [0.1.5}
- fix: sidebar item link with add/replace

View File

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

View File

@ -1,5 +1,5 @@
#!/bin/bash
# Version: 0.1.5
# Version: 0.1.6
# file: gsl
# Folder: /usr/local/bin
# 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
- Contact xmpp: im@echolib.re
## [0.1.6]
- fix: FR date on template only ; replace "-" with "/"
## [0.1.5}
- fix: sidebar item link with add/replace

View File

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

View File

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