Skip to content

Commit

Permalink
[#171][Site/CSS] Include the 'style.css' at the Root in all HTML Files.
Browse files Browse the repository at this point in the history
  • Loading branch information
pishoyg committed Sep 14, 2024
1 parent 4b330c9 commit 39abbc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion site/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ readonly GOOGLE_TAG='

readonly ICON_TAG=' <link rel="icon" type="image/x-icon" href="/img/icon/icon-circle.png">
'
readonly STYLE_TAG='<link href="/style.css" rel="stylesheet" type="text/css">
'

CLEAN=false
BUILD=false
Expand Down Expand Up @@ -120,7 +122,7 @@ build() {
echo -e "${PURPLE}Can't find <head> in ${RED}${FILE}"
exit 1
fi
NEW="$(head -n "${LINE_NUM}" "${FILE}")${GOOGLE_TAG}${ICON_TAG}$(tail -n "+$((LINE_NUM + 1))" "${FILE}")"
NEW="$(head -n "${LINE_NUM}" "${FILE}")${GOOGLE_TAG}${ICON_TAG}${STYLE_TAG}$(tail -n "+$((LINE_NUM + 1))" "${FILE}")"
echo "${NEW}" > "${FILE}"
tidy -config "tidy_config.txt" "${FILE}"
}
Expand Down

0 comments on commit 39abbc0

Please sign in to comment.