diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e9a6d88..fbde800 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,8 +52,9 @@ jobs: - name: Install fonts run: | sudo apt update - sudo apt-get install fonts-font-awesome fonts-roboto + sudo apt-get install fonts-roboto ./scripts/install-fontawesome + ./scripts/install-source-sans - name: Install locally run: just install diff --git a/lib.typ b/lib.typ index d124281..1ce2982 100644 --- a/lib.typ +++ b/lib.typ @@ -240,11 +240,6 @@ ) show heading.where(level: 1): it => [ - - #set block( - above: 1em, - below: 1em, - ) #set text( size: 16pt, weight: "regular", @@ -417,8 +412,14 @@ weight: "light", fill: color-darknight, ) + set block( + above: 0.75em, + below: 1.25em, + ) set par(leading: 0.65em) - body + block(above: 0.5em, below: 0.5em)[ + #body + ] } /// The base item for resume entries. This formats the item for the resume entries. Typically your body would be a bullet list of items. Could be your responsibilities at a company or your academic achievements in an educational background section. @@ -444,13 +445,15 @@ } else { title-content = title } - - pad[ - #justified-header(title-content, location) - #if description != "" or date != "" [ - #secondary-justified-header(description, date) + block(above: 1em, below: 0.65em)[ + #pad[ + #justified-header(title-content, location) + #if description != "" or date != "" [ + #secondary-justified-header(description, date) + ] ] ] + } /// Show cumulative GPA. diff --git a/scripts/install-source-sans b/scripts/install-source-sans new file mode 100755 index 0000000..cde6371 --- /dev/null +++ b/scripts/install-source-sans @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -eu + +wget -O ~/source-sans.zip https://github.com/adobe-fonts/source-sans/releases/download/3.052R/OTF-source-sans-3.052R.zip +mkdir -p ~/source-sans-fonts +unzip ~/source-sans.zip -d ~/source-sans-fonts +mkdir -p ~/.fonts +find ~/source-sans-fonts -type f -name "*.otf" -exec cp {} ~/.fonts \; +rm ~/source-sans.zip +rm -rf ~/source-sans-fonts +fc-cache -f -v diff --git a/template/resume.typ b/template/resume.typ index 7275a51..f411c13 100644 --- a/template/resume.typ +++ b/template/resume.typ @@ -50,9 +50,8 @@ ) #resume-item[ - - #lorem(20) - - #lorem(15) - - #lorem(25) + // content doesn't have to be bullet points + #lorem(72) ] #resume-entry( diff --git a/tests/resume/ref/1.png b/tests/resume/ref/1.png index 4b987e1..a65bac9 100644 Binary files a/tests/resume/ref/1.png and b/tests/resume/ref/1.png differ diff --git a/tests/utilities/ref/1.png b/tests/utilities/ref/1.png index 92f33a1..3ae4d0c 100644 Binary files a/tests/utilities/ref/1.png and b/tests/utilities/ref/1.png differ