Skip to content

Commit

Permalink
feat: adds header_info_size variable to metadata (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexk101 authored Feb 16, 2025
1 parent 6e5a052 commit a80866a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cv.typ
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
let lastName = metadata.personal.last_name
let headerQuote = metadata.lang.at(metadata.language).at("header_quote", default: none)
let displayProfilePhoto = metadata.layout.header.display_profile_photo
// let profilePhoto = metadata.layout.header.profile_photo_path
let headerInfoFontSize = eval(metadata.layout.header.at("info_font_size", default: "10pt"))
let accentColor = setAccentColor(awesomeColors, metadata)
let nonLatinName = ""
let nonLatin = isNonLatin(metadata.language)
Expand Down Expand Up @@ -61,7 +61,7 @@
text(font: headerFont, size: 32pt, weight: "bold", str)
}
let headerInfoStyle(str) = {
text(size: 10pt, fill: accentColor, str)
text(size: headerInfoFontSize, fill: accentColor, str)
}
let headerQuoteStyle(str) = {
text(size: 10pt, weight: "medium", style: "italic", fill: accentColor, str)
Expand Down
5 changes: 5 additions & 0 deletions metadata.toml.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
"display_profile_photo": {
"type": "boolean",
"description": "Display profile photo or not"
},
"info_font_size": {
"type": "string",
"description": "Font size for personal info",
"pattern": "^[0-9]+pt$"
}
},
"required": ["header_align", "display_profile_photo"]
Expand Down
1 change: 1 addition & 0 deletions template/metadata.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ language = "en"

# Decide if you want to display profile photo or not
display_profile_photo = true
info_font_size = "10pt"

[layout.entry]
# Decide if you want to put your company in bold or your position in bold
Expand Down

0 comments on commit a80866a

Please sign in to comment.