diff --git a/lib.typ b/lib.typ index b5ee686..ce92b1a 100644 --- a/lib.typ +++ b/lib.typ @@ -21,6 +21,7 @@ #let birth-icon = box(fa-icon("cake", fill: color-darknight)) #let homepage-icon = box(fa-icon("home", fill: color-darknight)) #let website-icon = box(fa-icon("globe", fill: color-darknight)) +#let address-icon = box(fa-icon("location-crosshairs", fill: color-darknight)) /// Helpers @@ -200,6 +201,7 @@ header-font: "Roboto", paper-size: "a4", use-smallcaps: true, + show-address-icon: false, body, ) = { if type(accent-color) == str { @@ -297,7 +299,12 @@ set text(size: 9pt, weight: "regular") align(center)[ #if ("address" in author) [ - #author.address + #if show-address-icon [ + #address-icon + #box[#text(author.address)] + ] else [ + #text(author.address) + ] ] ] } @@ -542,6 +549,7 @@ closing: none, paper-size: "a4", use-smallcaps: true, + show-address-icon: false, body, ) = { if type(accent-color) == str { @@ -634,7 +642,12 @@ set text(size: 9pt, weight: "bold", fill: color-gray) align(right)[ #if ("address" in author) [ - #author.address + #if show-address-icon [ + #address-icon + #box[#text(author.address)] + ] else [ + #text(author.address) + ] ] ] } diff --git a/template/coverletter.typ b/template/coverletter.typ index a359700..3fe3029 100644 --- a/template/coverletter.typ +++ b/template/coverletter.typ @@ -23,6 +23,8 @@ // Remove the following line to show the footer // Or set the value to `true` show-footer: false, + // this defaults to false + show-address-icon: true, // set this to `none` to show the default or remove it completely closing: [], // see typst "page" documentation for more options diff --git a/template/resume.typ b/template/resume.typ index b2ce34f..68e333b 100644 --- a/template/resume.typ +++ b/template/resume.typ @@ -25,6 +25,7 @@ language: "en", colored-headers: true, show-footer: false, + show-address-icon: true, paper-size: "us-letter", )