Skip to content

Commit

Permalink
feat: make header_quote optional (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeWimbes authored and yunanwg committed Feb 16, 2025
1 parent 0627d24 commit 5b7aa71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cv.typ
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
let personalInfo = metadata.personal.info
let firstName = metadata.personal.first_name
let lastName = metadata.personal.last_name
let headerQuote = metadata.lang.at(metadata.language).header_quote
let headerQuote = metadata.lang.at(metadata.language).at("header_quote", default: none)
let displayProfilePhoto = metadata.layout.header.display_profile_photo
let headerInfoFontSize = eval(metadata.layout.header.at("info_font_size", default: "8pt"))
// let profilePhoto = metadata.layout.header.profile_photo_path
Expand Down Expand Up @@ -148,7 +148,7 @@
headerFirstNameStyle(nonLatinName)
} else [#headerFirstNameStyle(firstName) #h(5pt) #headerLastNameStyle(lastName)],
[#headerInfoStyle(makeHeaderInfo())],
[#headerQuoteStyle(headerQuote)],
.. if headerQuote != none { ([#headerQuoteStyle(headerQuote)],) },
)

let makeHeaderPhotoSection() = {
Expand Down
2 changes: 1 addition & 1 deletion metadata.toml.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"type": "string"
}
},
"required": ["header_quote", "cv_footer", "letter_footer"]
"required": ["cv_footer", "letter_footer"]
},
"^non_latin$": {
"type": "object",
Expand Down

0 comments on commit 5b7aa71

Please sign in to comment.