~lobisquit/personal-website

afa11b73ed092fe59ee623bb55ceef8b39e363d5 — Enrico Lovisotto 2 years ago 8d1f93c
Using proper url-color to make them more spottable
2 files changed, 10 insertions(+), 5 deletions(-)

M publish.sh
M website/styles.css
M publish.sh => publish.sh +9 -4
@@ 15,14 15,19 @@ mkdir -p "$PUBLIC/icons"
cargo run --manifest-path logo-generator/Cargo.toml -- --color "{{logo-color}}" > "$PUBLIC/icons/logo.svg"

# replace color labels
find "$PUBLIC" -type f -not -path "$PUBLIC/.git/*" -exec sed -i 's/{{logo-color}}/#333/' {} \;
find "$PUBLIC" -type f -not -path "$PUBLIC/.git/*" -exec sed -i 's/{{icon-color}}/#333/' {} \;
find "$PUBLIC" -type f -not -path "$PUBLIC/.git/*" -exec sed -i 's/{{text-color}}/#333/' {} \;
patterns=('s/{{logo-color}}/#c21111/'
		  's/{{icon-color}}/#333/'
		  's/{{text-color}}/#333/'
		  's/{{url-color}}/#c21111/');

for pattern in ${patterns[@]}; do
   find "$PUBLIC" -type f -not -path "$PUBLIC/.git/*" -exec sed -i "$pattern" {} \;
done

# zip everything, but keep original
find "$PUBLIC" -type f -exec gzip -k "{}" \;

# download CVs from private repo artifacts
# download CVs from dedicated repo
mkdir -p "$PUBLIC/cv"
curl https://lobisquit.gitlab.io/cv/Enrico_Lovisotto_CV_en.pdf \
     --output "$PUBLIC/cv/EL_english.pdf"

M website/styles.css => website/styles.css +1 -1
@@ 18,7 18,7 @@ h1,h2,h3 {
}

a {
    color: {{text-color}};
    color: {{url-color}};
    font-family: monospace;
    text-decoration: none
}