summaryrefslogtreecommitdiffstats
path: root/update_resume
blob: ee96a1991a4e6006e7c9e2c9aa4dbc19514e1917 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -e

pandoc --from latex+ascii_identifiers ./resume.tex --to commonmark+ascii_identifiers -o content/resume.md

sed -i 's/^# /## /g' content/resume.md
# Make my name more prominent :)
sed -i '3 s/./# &/' content/resume.md

# Add the hugo stuff
sed -i '1s/^/If you want it as a PDF, [contact me](\/about\/\#contact)\n\n --- \n\n/' content/resume.md
sed -i '1s/^/+++\n\n/' content/resume.md
sed -i '1s/^/fediverseCreator = "@me@mattstrapp.net"\n/' content/resume.md
sed -i '1s/^/author = "Matt Strapp"\n/' content/resume.md
sed -i '1s/^/aliases = ["portfolio", "resume"]\n/' content/resume.md
sed -i '1s/^/date = "1970-01-01"\n/' content/resume.md
sed -i '1s/^/description = "About me"\n/' content/resume.md
sed -i '1s/^/title = "Resume"\n/' content/resume.md
sed -i '1s/^/+++\n/' content/resume.md