_blogs: Let's try using Zsh for date replacements
This commit is contained in:
parent
3e849c9eb0
commit
d534e2676f
8
qsgen2
8
qsgen2
@ -617,14 +617,14 @@ function _blogs() {
|
||||
echo "${blog_tpl}" | \
|
||||
perl -pe "\
|
||||
s|BLOGTITLE|${btitle}|g; \
|
||||
s|CALADAY|${sdate[1]}|g; \
|
||||
s|CALNDAY|${sdate[4]}|g; \
|
||||
s|CALMONTH|${sdate[3]}|g; \
|
||||
s|CALYEAR|${sdate[2]}|g; \
|
||||
s|BLOGURL|${blog_url}|g; \
|
||||
s|\QINGRESS\E|${ingress}|g; \
|
||||
s|\QBODY\E|${body}|g \
|
||||
")
|
||||
blog_content="${blog_content//CALNDAY/${sdate[4]}}"
|
||||
blog_content="${blog_content//CALYEAR/${sdate[2]}}"
|
||||
blog_content="${blog_content//CALMONTH/${sdate[3]}}"
|
||||
blog_content="${blog_content//CALADAY/${sdate[1]}}"
|
||||
|
||||
if (${debug}) _msg debug "_blogs: Running function $engine for ${blog}"
|
||||
if [[ ${file_ext} == "qst" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user