Merge pull request #41 from DeveloperPaul123/feature/make-address-optional

Mmake address optional
This commit is contained in:
Paul T
2024-06-23 20:31:13 -04:00
committed by GitHub
2 changed files with 17 additions and 11 deletions

View File

@@ -7,7 +7,9 @@ jobs:
- name: Set up Git repository - name: Set up Git repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install fonts - name: Install fonts
run: sudo apt-get install fonts-font-awesome fonts-roboto texlive-fonts-recommended texlive-fonts-extra run: |
sudo apt update
sudo apt-get install fonts-font-awesome fonts-roboto texlive-fonts-recommended texlive-fonts-extra
- name: Typst - name: Typst
uses: yusancky/setup-typst@v2 uses: yusancky/setup-typst@v2
id: setup-typst id: setup-typst

24
lib.typ
View File

@@ -269,7 +269,9 @@
weight: "bold", weight: "bold",
) )
align(center)[ align(center)[
#author.address #if ("address" in author) [
#author.address
]
] ]
} }
@@ -286,21 +288,21 @@
) )
#block[ #block[
#align(horizon)[ #align(horizon)[
#if author.phone != none [ #if ("phone" in author) [
#phone-icon #phone-icon
#box[#text(author.phone)] #box[#text(author.phone)]
#separator #separator
] ]
#if author.email != none [ #if ("email" in author) [
#email-icon #email-icon
#box[#link("mailto:" + author.email)[#author.email]] #box[#link("mailto:" + author.email)[#author.email]]
] ]
#if author.github != none [ #if ("github" in author) [
#separator #separator
#github-icon #github-icon
#box[#link("https://github.com/" + author.github)[#author.github]] #box[#link("https://github.com/" + author.github)[#author.github]]
] ]
#if author.linkedin != none [ #if ("linkedin" in author) [
#separator #separator
#linkedin-icon #linkedin-icon
#box[ #box[
@@ -528,7 +530,9 @@
fill: color-gray, fill: color-gray,
) )
align(right)[ align(right)[
#author.address #if ("address" in author) [
#author.address
]
] ]
} }
@@ -548,21 +552,21 @@
#stack( #stack(
dir: ltr, dir: ltr,
spacing: 0.5em, spacing: 0.5em,
if author.phone != none [ if ("phone" in author) [
#phone-icon #phone-icon
#box[#text(author.phone)] #box[#text(author.phone)]
#separator #separator
], ],
if author.email != none [ if ("email" in author) [
#email-icon #email-icon
#box[#link("mailto:" + author.email)[#author.email]] #box[#link("mailto:" + author.email)[#author.email]]
], ],
if author.github != none [ if ("github" in author) [
#separator #separator
#github-icon #github-icon
#box[#link("https://github.com/" + author.github)[#author.github]] #box[#link("https://github.com/" + author.github)[#author.github]]
], ],
if author.linkedin != none [ if ("linkedin" in author) [
#separator #separator
#linkedin-icon #linkedin-icon
#box[ #box[