Add new theme: black-orange and update minimal

This commit is contained in:
Stig-Ørjan Smelror 2024-02-02 23:06:17 +01:00
parent 530c26c405
commit 6e83cf53f2

10
qsgen2
View File

@ -296,12 +296,13 @@ function _last_updated() {
local content="${1}" local content="${1}"
local debug=false local debug=false
local upd_msg="Last updated ${today} by <a href=\"https://blog.kekepower.com/qsgen2.html\">${QSGEN} ${VERSION}</a>"
if (${debug}) _msg debug "_last_updated: Setting date and version in footer" if (${debug}) _msg debug "_last_updated: Setting date and version in footer"
# Perform the replacements # Perform the replacements
local updated_content=$(echo "${content}" | sed \ local updated_content=$(echo "${content}" | sed \
-e "s|#updated|${today}|" \ -e "s|#updated|${upd_msg}|")
-e "s|#version|${QSGEN} ${VERSION}|")
# Return the updated content # Return the updated content
echo "${updated_content}" echo "${updated_content}"
@ -313,12 +314,13 @@ function _f_last_updated() {
local content="${1}" local content="${1}"
local debug=false local debug=false
local upd_msg="Last updated ${today} by <a href=\"https://blog.kekepower.com/qsgen2.html\">${QSGEN} ${VERSION}</a>"
if (${debug}) _msg debug "_f_last_updated: Setting date and version in footer of file ${1}" if (${debug}) _msg debug "_f_last_updated: Setting date and version in footer of file ${1}"
# Perform the replacements # Perform the replacements
tee < ${content} | sed \ tee < ${content} | sed \
-e "s|#updated|${today}|" \ -e "s|#updated|${upd_msg}|" \
-e "s|#version|${QSGEN} ${VERSION}|" \
> ${content} > ${content}
} }