Skip to content

Commit

Permalink
refactor!: change cv.typ show function
Browse files Browse the repository at this point in the history
  • Loading branch information
mintyfrankie committed Jul 12, 2024
1 parent 283b719 commit 365d389
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion brilliant-CV/template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,14 @@
}

/* Layout */
#let layout(doc) = {
#let cv(
metadata_path: "../metadata.toml",
doc,
) = {
// Load metadata
let metadata = toml(metadata_path)

// Page layout
set text(font: fontList, weight: "regular", size: 9pt)
set align(left)
set page(
Expand Down
2 changes: 1 addition & 1 deletion cv.typ
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#import "brilliant-CV/template.typ": *
#import "brilliant-CV/utils/lang.typ": autoImport
#show: layout
#show: cv.with(metadata_path: "../metadata.toml")

#cvHeader(hasPhoto: true, align: left)
#autoImport("education")
Expand Down

0 comments on commit 365d389

Please sign in to comment.