summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2021-02-07 19:20:16 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2021-02-08 19:56:29 +0100
commit40d193b330443ea074f42674ed18f463fc8e422e (patch)
treec3abfa115f38923afbadea6d38b4da0ca5e8e7ef /build.sh
parent0990b4df19b1e8c42c8a1c22fc77fb9e836b379c (diff)
downloadquatuorbellefeuille.com-40d193b330443ea074f42674ed18f463fc8e422e.tar.xz
Move images and stylesheets in subfolders
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index b4fc8f8..617645c 100755
--- a/build.sh
+++ b/build.sh
@@ -38,7 +38,8 @@ sed -i s/'{TITLE}'/"${title}"/ ${output}
link_stylesheets=''
for s in "${stylesheets[@]}"
do
- link_stylesheets+=$(printf '<link rel="stylesheet" href="%s.css">\n' "${s}")
+ link_template='<link rel="stylesheet" href="stylesheets/%s.css">\n'
+ link_stylesheets+=$(printf "${link_template}" "${s}")
done
sed -i /'{STYLESHEETS}'/'c\'"${link_stylesheets}" ${output}