Update substitutions
This commit is contained in:
parent
2b45fc95cf
commit
271a7fca30
6
qsgen2
6
qsgen2
@ -421,10 +421,8 @@ function _blogs() {
|
|||||||
ingress=$( echo ${content} | sed "s/'/\\\'/g" | xargs | grep -Po "#INGRESS_START\K(.*?)#INGRESS_STOP" | sed "s|\ \#INGRESS_STOP||" | sed "s|^\ ||" )
|
ingress=$( echo ${content} | sed "s/'/\\\'/g" | xargs | grep -Po "#INGRESS_START\K(.*?)#INGRESS_STOP" | sed "s|\ \#INGRESS_STOP||" | sed "s|^\ ||" )
|
||||||
body=$( echo ${content} | sed "s/'/\\\'/g" | xargs | grep -Po "#BODY_START\K(.*?)#BODY_STOP" | sed "s|\ \#BODY_STOP||" | sed "s|^\ ||" )
|
body=$( echo ${content} | sed "s/'/\\\'/g" | xargs | grep -Po "#BODY_START\K(.*?)#BODY_STOP" | sed "s|\ \#BODY_STOP||" | sed "s|^\ ||" )
|
||||||
|
|
||||||
blog_index="${btitle,,}"
|
blog_index="${btitle:l}"
|
||||||
blog_index="${blog_index// /_}"
|
blog_index=$(echo "${blog_index}" | sed 's/ /_/g; s/,//g; s/\.//g')
|
||||||
blog_index="${blog_index//,/}"
|
|
||||||
blog_index="${blog_index//./}"
|
|
||||||
|
|
||||||
blog_dir="/blog/${sdate[2]}/${sdate[3]:l}/${sdate[4]}"
|
blog_dir="/blog/${sdate[2]}/${sdate[3]:l}/${sdate[4]}"
|
||||||
blog_url="${blog_dir}/${blog_index:l}.html"
|
blog_url="${blog_dir}/${blog_index:l}.html"
|
||||||
|
Loading…
Reference in New Issue
Block a user