Bauke/cv
Bauke
/
cv
1
Fork 0

Add a version number.

This commit is contained in:
Bauke 2024-03-01 18:47:50 +01:00
parent c5dc64409e
commit 8ac5ff34a3
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 9 additions and 1 deletions

View File

@ -7,12 +7,14 @@
# Define options based on environment variables or use default values. # Define options based on environment variables or use default values.
include_links=${CV_INCLUDE_LINKS:-"true"} include_links=${CV_INCLUDE_LINKS:-"true"}
language=${CV_LANG:-"en"} language=${CV_LANG:-"en"}
version="2023-03-01"
typst_template="#import \"main.typ\": cv typst_template="#import \"main.typ\": cv
#cv( #cv(
include_links: $include_links, include_links: $include_links,
language: \"$language\", language: \"$language\",
version: \"$version\",
)" )"
echo $typst_template > cv.typ echo $typst_template > cv.typ

View File

@ -3,8 +3,9 @@
#import "./components/skills.typ": skills_section #import "./components/skills.typ": skills_section
#import "./components/header.typ": header #import "./components/header.typ": header
#import "./utilities/content-to-string.typ": content_to_string #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 == "" { if language == "" {
panic("No language option specified.") panic("No language option specified.")
} }
@ -31,6 +32,11 @@
header(data, language, include_links) 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. // Portion out the main body using a grid.
grid( grid(
columns: (60%, 40%), columns: (60%, 40%),