Skip to content

Commit

Permalink
Use default values from the template, fix zero-padded date
Browse files Browse the repository at this point in the history
  • Loading branch information
kadykov committed Nov 1, 2024
1 parent 6098e04 commit f347f4b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 54 deletions.
17 changes: 0 additions & 17 deletions kadykov-cv-en.typ
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
#import "style.typ": *

#let name = "Aleksandr KADYKOV"
#let post-name = "Research Engineer"
#let website = "www.kadykov.com"
#let github = "kadykov"
#let gitlab = "kadykov"
#let linkedin = "aleksandr-kadykov"

// Optional email input
#let email = {
if "EMAIL" in sys.inputs.keys() {sys.inputs.EMAIL}
else {"[email protected]"}
}

// Call the function from `style.typ` and pass variables to set up the document style
#show: setup-style.with(
name: name,
email: email,
website: website,
github: github,
gitlab: gitlab,
linkedin: linkedin,
keywords: (
"résumé",
"resume",
Expand Down
45 changes: 9 additions & 36 deletions kadykov-letter-en.typ
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
#import "style.typ": *

#let name = "Aleksandr Kadykov"
#let post-name = "Research Engineer"
#let website = "www.kadykov.com"
#let github = "kadykov"
#let gitlab = "kadykov"
#let linkedin = "aleksandr-kadykov"

// Optional email input
#let email = {
if "EMAIL" in sys.inputs.keys() {sys.inputs.EMAIL}
else {"[email protected]"}
}

#let today = datetime.today()
#let suffix = {
let day = today.day()
Expand All @@ -23,41 +10,27 @@
}

// Call the function from `style.typ` and pass variables to set up the document style
#show: setup-style.with(
name: name,
email: email,
website: website,
github: github,
gitlab: gitlab,
linkedin: linkedin,
)

#show: setup-style.with()

#let from-content = [
*From*:

#name

Mons,
Belgium

#today.display(
"[month repr:long] [day]"
)#super(suffix) \
"[month repr:long] [day padding:none]"
)#super(suffix),
#today.year()
]
#let to-content = [
*To*:
Future Employer
// Future Employer
Company
// Company
Street 123\
City\
00000 \
Country
// Street 123\
// City\
// 00000 \
// Country
]
#context {
Expand Down
8 changes: 7 additions & 1 deletion style.typ
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#import "@preview/fontawesome:0.4.0": *

#let name = "Aleksandr KADYKOV"

#let text-color = black
#let background-color = white
#let primary-color = rgb("#3A468C")
#let bodywidth = 70%
// Define a function to set up style that accepts external variables
#let setup-style(
name: "Aleksandr KADYKOV",
name: name,
email: "[email protected]",
post-name: "Research Engineer",
website: "www.kadykov.com",
Expand Down Expand Up @@ -58,6 +60,10 @@
]
|
]
#let email = {
if "EMAIL" in sys.inputs.keys() {sys.inputs.EMAIL}
else {"[email protected]"}
}
#link("mailto:" + email)[
#text(fill: primary-color)[#fa-envelope()]
#email
Expand Down

0 comments on commit f347f4b

Please sign in to comment.