Skip to content

Commit

Permalink
Merge pull request #41 from DeveloperPaul123/feature/make-address-opt…
Browse files Browse the repository at this point in the history
…ional

Mmake address optional
  • Loading branch information
DeveloperPaul123 authored Jun 24, 2024
2 parents 6f3a515 + 0f4e404 commit 70e7f9c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ jobs:
- name: Set up Git repository
uses: actions/checkout@v4
- 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
uses: yusancky/setup-typst@v2
id: setup-typst
Expand Down
24 changes: 14 additions & 10 deletions lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@
weight: "bold",
)
align(center)[
#author.address
#if ("address" in author) [
#author.address
]
]
}

Expand All @@ -286,21 +288,21 @@
)
#block[
#align(horizon)[
#if author.phone != none [
#if ("phone" in author) [
#phone-icon
#box[#text(author.phone)]
#separator
]
#if author.email != none [
#if ("email" in author) [
#email-icon
#box[#link("mailto:" + author.email)[#author.email]]
]
#if author.github != none [
#if ("github" in author) [
#separator
#github-icon
#box[#link("https://github.com/" + author.github)[#author.github]]
]
#if author.linkedin != none [
#if ("linkedin" in author) [
#separator
#linkedin-icon
#box[
Expand Down Expand Up @@ -528,7 +530,9 @@
fill: color-gray,
)
align(right)[
#author.address
#if ("address" in author) [
#author.address
]
]
}

Expand All @@ -548,21 +552,21 @@
#stack(
dir: ltr,
spacing: 0.5em,
if author.phone != none [
if ("phone" in author) [
#phone-icon
#box[#text(author.phone)]
#separator
],
if author.email != none [
if ("email" in author) [
#email-icon
#box[#link("mailto:" + author.email)[#author.email]]
],
if author.github != none [
if ("github" in author) [
#separator
#github-icon
#box[#link("https://github.com/" + author.github)[#author.github]]
],
if author.linkedin != none [
if ("linkedin" in author) [
#separator
#linkedin-icon
#box[
Expand Down

0 comments on commit 70e7f9c

Please sign in to comment.