diff --git a/compile-cv.zsh b/compile-cv.zsh index 27ca238..e344d4b 100755 --- a/compile-cv.zsh +++ b/compile-cv.zsh @@ -7,12 +7,14 @@ # Define options based on environment variables or use default values. include_links=${CV_INCLUDE_LINKS:-"true"} language=${CV_LANG:-"en"} +version="2023-03-01" typst_template="#import \"main.typ\": cv #cv( include_links: $include_links, language: \"$language\", + version: \"$version\", )" echo $typst_template > cv.typ diff --git a/main.typ b/main.typ index ce5d443..a4c95dd 100644 --- a/main.typ +++ b/main.typ @@ -3,8 +3,9 @@ #import "./components/skills.typ": skills_section #import "./components/header.typ": header #import "./utilities/content-to-string.typ": content_to_string +#import "./utilities/localize.typ": localize -#let cv(include_links: true, language: "") = { +#let cv(include_links: true, language: "", version: "") = { if language == "" { panic("No language option specified.") } @@ -31,6 +32,11 @@ header(data, language, include_links) + place( + bottom + right, + text(fill: rgb("#999"), [#localize(data, "version", language) #version]), + ) + // Portion out the main body using a grid. grid( columns: (60%, 40%),