fix: convert link files +media link > 0.0.7

This commit is contained in:
Cyrille L 2022-04-07 15:04:27 +02:00
parent 00d3a3cd01
commit 9c876741f2
1 changed files with 1 additions and 12 deletions

View File

@ -25,9 +25,7 @@ gsl__page_listing_create Add
gsl__do_italics "make" "$gsl_tmp_post" # First gsl__do_italics "make" "$gsl_tmp_post" # First
gsl__do_header "make" "$gsl_marker_link" "$gsl_post" gsl__do_header "make" "$gsl_marker_link" "$gsl_post"
gsl__do_header "make" "$gsl_marker_abbr" "$gsl_post" gsl__do_header "make" "$gsl_marker_abbr" "$gsl_post"
gsl__make_files gsl__make_files
echo "M> $gsl_mark_file"
gsl__do_strongs_bolds "make" "$gsl_tmp_post" gsl__do_strongs_bolds "make" "$gsl_tmp_post"
gsl__make_list gsl__make_list
@ -613,35 +611,26 @@ gsl__make_files() {
echo echo
while read -r "gsl_this_file" while read -r "gsl_this_file"
do do
gsl_this_file=${gsl_this_file/file: /} gsl_this_file=${gsl_this_file/$gsl_marker_file/}
echo "Line> $gsl_this_file"
gsl_filetxt=` gsl_filetxt=`
awk -F" : " \ awk -F" : " \
'{print $1}' \ '{print $1}' \
<<< "$gsl_this_file"` <<< "$gsl_this_file"`
echo "1> $gsl_filetxt"
gsl_filename=` gsl_filename=`
awk -F" : " \ awk -F" : " \
'{print $2}' \ '{print $2}' \
<<< "$gsl_this_file"` <<< "$gsl_this_file"`
echo "2> $gsl_filename"
gsl_filealt=` gsl_filealt=`
awk -F" : " \ awk -F" : " \
'{print $3}' \ '{print $3}' \
<<< "$gsl_this_file"` <<< "$gsl_this_file"`
echo "3> $gsl_filealt"
[[ "$gsl_filealt" ]] \ [[ "$gsl_filealt" ]] \
&& gsl_HTML_file_title=" title=\"$gsl_filealt\"" && gsl_HTML_file_title=" title=\"$gsl_filealt\""
sleep 2
# Set HTML Link # Set HTML Link
case "$gsl_post_type" in case "$gsl_post_type" in
post) gsl_HTML_file_url="../files/$gsl_filename" ;; post) gsl_HTML_file_url="../files/$gsl_filename" ;;