~lobisquit/personal-website

0ae5779f16e12a321e77519b5d5dc3292135325f — Enrico Lovisotto 3 years ago 3aeb4ee
Added CV to website
2 files changed, 16 insertions(+), 2 deletions(-)

M publish.sh
M website/index.html
M publish.sh => publish.sh +10 -2
@@ 2,7 2,7 @@

# clean and re-populate the public/ folder
mkdir -p "$PUBLIC"
find "$PUBLIC" -type f \( -name "*.html" -or -name "*.gz" -or -name "*.svg"  -or -name "*.css" \) -not -path "$PUBLIC/.git/*" -exec rm "{}" \;
find "$PUBLIC" -type f \( -name "*.html" -or -name "*.gz" -or -name "*.svg"  -or -name "*.css" -or -name "*.pdf" \) -exec rm "{}" \;
cp -r "$WEBSITE"/* "$PUBLIC/"

# generate the logo


@@ 15,4 15,12 @@ find "$PUBLIC" -type f -not -path "$PUBLIC/.git/*" -exec sed -i 's/{{icon-color}
find "$PUBLIC" -type f -not -path "$PUBLIC/.git/*" -exec sed -i 's/{{text-color}}/#333/' {} \;

# zip everything, but keep original
find "$PUBLIC" -type f -not -path "$PUBLIC/.git/*" -exec gzip -k "{}" \;
find "$PUBLIC" -type f -exec gzip -k "{}" \;

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

curl https://lobisquit.gitlab.io/cv/Enrico_Lovisotto_CV_it.pdf \
     --output "$PUBLIC/cv/EL_italian.pdf"

M website/index.html => website/index.html +6 -0
@@ 49,5 49,11 @@
        </a>
      </li>
    </ul>

    <p>Curriculum Vitae available in
      <a href="cv/EL_english.pdf">English</a>
      and in
      <a href="cv/EL_italian.pdf">Italian</a>
    </p>
  </body>
</html>