fix: FR Date on sidebar ; sync exclude hidden files

This commit is contained in:
Cyrille L 2022-06-25 00:37:22 +02:00
parent e3ccd2a214
commit 87a1b09d33
6 changed files with 20 additions and 9 deletions

View File

@ -4,6 +4,11 @@ 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.7]
- fix: FR Date on sidebar
- sync: exclude hidden files from templates
## [0.1.6]
- fix: FR date on template only ; replace "-" with "/"

View File

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

View File

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

View File

@ -4,6 +4,11 @@ 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.7]
- fix: FR Date on sidebar
- sync: exclude hidden files from templates
## [0.1.6]
- fix: FR date on template only ; replace "-" with "/"

View File

@ -80,7 +80,7 @@ if [[ `grep -i "fr" <<<"$site_lang"` ]];then
gsl_written="Écrit par"
gsl_about=" À propos de"
gsl_gen="Propulsé par"
gsl_the="Le"
gsl_the="le"
gsl_by="par"
gsl_read="Lire l'article de"
gsl_rss_info="Tous les titres de"
@ -208,6 +208,7 @@ EOMETAS
# $1: file ($sidebar_HTML_item - see above)
#======================================================================
create__HTML_sidebar_item() {
create__HTML_translation
cat <<EOSIDEBARITEM > "$1"
<li class="${site_css}_list-post-item">
<a href="/$gsl_slug_file"
@ -217,7 +218,7 @@ cat <<EOSIDEBARITEM > "$1"
<span class="${site_css}_list-post-title">$article_Title</span>
<div class="${site_css}_list-post-metas">
$gsl_the $article_Date $gsl_by $article_Author
$gsl_the $gsl_date $gsl_by $article_Author
</div>
<div class="${site_css}_list-post-info">

View File

@ -335,15 +335,15 @@ exit
#======================================================================
# Sync Files from Templates to webserver
# $1: process (wip|www|wip+www)
# $2: Folder
# $2: Folder on srv_wip or srv_www
#======================================================================
sync__srv() {
# Sync Files and Folders
mkdir -p "$2"
rsync -a --delete "$gsl_dir_domain_tpl" "$2"
rsync -a --delete "$gsl_dir_domain_files" "$2"
rsync -a --delete "$gsl_dir_domain_images" "$2"
rsync -a --delete "$gsl_dir_domain_listings" "$2"
rsync -a --delete --exclude ".*" "$gsl_dir_domain_tpl" "$2"
rsync -a --delete --exclude ".*" "$gsl_dir_domain_files" "$2"
rsync -a --delete --exclude ".*" "$gsl_dir_domain_images" "$2"
rsync -a --delete --exclude ".*" "$gsl_dir_domain_listings" "$2"
gsl__logs_print -i -srv $1 \
"Sync: $gsl_dir_domain/" \