Compare commits
7 Commits
c4b43e6c6e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 5becd1c6ea | |||
| 57d92d7584 | |||
| 6359c4ded5 | |||
| 26c115b7e1 | |||
| b2fe7f7a7f | |||
| 29d6ef5ad0 | |||
| f397c33ac0 |
@@ -10,7 +10,13 @@ mkdir -p "$dst_dir"
|
||||
tmp_web_footer_dir="/tmp/web-footer-$(date +%N)"
|
||||
echo Cloning web-footer to "$tmp_web_footer_dir"... >&2
|
||||
git clone --depth 1 --branch main git@git.seanhealy.ie:sean/web-footer.git "$tmp_web_footer_dir"
|
||||
if [ $? != 0 ] || [ ! -d "$tmp_web_footer_dir" ]; then
|
||||
echo "Failed to clone web-footer repository." >&2
|
||||
exit 1
|
||||
fi
|
||||
echo Re-personalising HTML files... >&2
|
||||
(cd "/tmp/web-footer" && ./automation/personalise.sh)
|
||||
(cd "$tmp_web_footer_dir" && ./automation/personalise.sh)
|
||||
echo Cleaning up... >&2
|
||||
rm -rf "$tmp_web_footer_dir"
|
||||
if [ "$tmp_web_footer_dir" ] && [ -d "$tmp_web_footer_dir" ] && [ -d "$tmp_web_footer_dir/.git" ]; then
|
||||
rm -rf "$tmp_web_footer_dir"
|
||||
fi
|
||||
|
||||
@@ -1 +1 @@
|
||||
apply when modified:/git-portfolio
|
||||
apply when modified:(/git-portfolio or /automation/apply.sh)
|
||||
|
||||
@@ -173,7 +173,7 @@ if [ "$portfolio_index" ]; then
|
||||
<head>
|
||||
<title>Projects</title>
|
||||
<body>
|
||||
<h1>Projects</h1>
|
||||
<h2>Projects</h2>
|
||||
<div id="git-portfolio">
|
||||
<style>
|
||||
#git-portfolio {
|
||||
@@ -199,6 +199,11 @@ if [ "$portfolio_index" ]; then
|
||||
box-sizing: content-box;
|
||||
width: 25%;
|
||||
}
|
||||
@media (max-width: 800px) {
|
||||
#git-portfolio a {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
#git-portfolio section ul.languages {
|
||||
float: right;
|
||||
position: absolute;
|
||||
@@ -221,6 +226,8 @@ li.language {
|
||||
EOF
|
||||
)"
|
||||
echo "$portfolio_index" > "$tmp_portfolio/index.html"
|
||||
else
|
||||
echo "Warning: No public repositories found for user '$GIT_USER'. Portfolio will be empty." >&2
|
||||
fi
|
||||
if [ -d "$directory" ]; then
|
||||
if [ "$(du -sb "$directory" | cut -f1)" -gt $((1024 * 1024 * 400)) ]; then
|
||||
|
||||
Reference in New Issue
Block a user