Add a version number.
This commit is contained in:
parent
c5dc64409e
commit
8ac5ff34a3
|
@ -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
|
||||||
|
|
8
main.typ
8
main.typ
|
@ -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%),
|
||||||
|
|
Loading…
Reference in New Issue