diff --git a/control b/control index 54e8112..0e88048 100644 --- a/control +++ b/control @@ -1,5 +1,5 @@ Package: egsl -Version: 0.0.6 +Version: 0.0.7 Section: custom Priority: optional Architecture: all diff --git a/usr/local/bin/gsl b/usr/local/bin/gsl index d57999c..d48e807 100755 --- a/usr/local/bin/gsl +++ b/usr/local/bin/gsl @@ -1,5 +1,5 @@ #!/bin/bash -# Version: 0.0.6 +# Version: 0.0.7 # file: gsl # Folder: /usr/local/bin # By echolib diff --git a/var/lib/gsl/scripts/gsl__page_creator b/var/lib/gsl/scripts/gsl__page_creator index 5973a10..070fdc8 100644 --- a/var/lib/gsl/scripts/gsl__page_creator +++ b/var/lib/gsl/scripts/gsl__page_creator @@ -18,7 +18,9 @@ gsl__page_creator() { gsl__check_templates gsl__html_meta_head gsl__page_create -cat -n "$gsl_srv_wip_page" + +# Show html result in terminal +#cat -n "$gsl_srv_wip_page" } #====================================================================== @@ -142,9 +144,15 @@ cat `ls -1r "$gsl_dir_domain_listings/"*.list.*` \ # Create HTML List from selected Post #====================================================================== gsl__page_listing_create_file() { +# Set HTML Base Link +case "$gsl_post_type" in + post) gsl_bpost_url="$gsl_header_slug/index.html" ;; + page) gsl_bpost_url="$gsl_header_slug.html" ;; +esac + cat << EOPostSide > "$1"
  • - $gsl_header_title + $gsl_header_title
    Le $gsl_header_date par $gsl_header_author
  • diff --git a/var/lib/gsl/scripts/gsl__post_makers b/var/lib/gsl/scripts/gsl__post_makers index 83b0a8e..a2351b6 100644 --- a/var/lib/gsl/scripts/gsl__post_makers +++ b/var/lib/gsl/scripts/gsl__post_makers @@ -26,7 +26,6 @@ gsl__do_italics "make" "$gsl_tmp_post" # First gsl__do_header "make" "$gsl_marker_link" "$gsl_post" gsl__do_header "make" "$gsl_marker_abbr" "$gsl_post" gsl__make_files - gsl__do_strongs_bolds "make" "$gsl_tmp_post" gsl__make_list gsl__do_icode "make" "$gsl_tmp_post" @@ -260,14 +259,14 @@ done < <(grep -n "$gsl_mark_fcode" "$gsl_tmp_post" | head -n 1) # From gsl__do_header: Make Link #====================================================================== gsl__make_link() { -echo -ne "\r\033[2K: Converting Links... $gsl_post_hf_1" - gsl_post_hf_1="${gsl_post_hf_1}" gsl_post_hf_1_t="${gsl_post_hf_1}+" [[ "$sl_post_hf_3" ]] \ && gsl_html_link_title=" title=\"$sl_post_hf_3\"" +echo -ne "\r\033[2K: Converting Links... $gsl_post_hf_1" + # target blank gsl_html_link_t=` printf '%s%s%s%s' \ @@ -300,12 +299,13 @@ sed -i "s|$gsl_post_hf_1|$gsl_html_long|" "$gsl_tmp_post" # Find and convert Titles #1-6 #======================================================================= gsl__make_titles() { -echo -ne ": Searching and converting Titles..." for t in `seq 1 6` do while read -r "h" "content" do gsl_html_title="$content" + + echo -ne "\r\033[2K: Converting Titles... $content" sed -i "s^$h $content^$gsl_html_title^" \ "$gsl_tmp_post" done < <(grep "#$t" "$gsl_tmp_post") @@ -318,7 +318,7 @@ done # Open DIVs after titles for css #======================================================================= gsl__make_titles_div_open() { -echo -ne "\r\033[2K: Searching Titles and Open DIVs..." +echo -ne "\r\033[2K: Searching Titles and Opening DIVs..." gsl_ct=$(( gsl_ct + 1 )) gsl_content_title=` @@ -350,7 +350,7 @@ gsl__make_titles_div_open # Close DIVs before titles for css #======================================================================= gsl__make_titles_div_close() { -echo -ne "\r\033[2K: Searching Titles and Open DIVs..." +echo -ne "\r\033[2K: Searching Titles and Closing DIVs..." gsl_test_line="
    " \ "$gsl_filetxt" \ ""` + echo -ne "\r\033[2K: Converting File... $gsl_mark_file" sed -i "s|$gsl_mark_file|$gsl_HTML_file_link|g" \ "$gsl_tmp_post"