fix: theming issues and update docs
This commit is contained in:
9
lib.typ
9
lib.typ
@@ -6,7 +6,7 @@
|
|||||||
#let color-darkgray = rgb("#333333")
|
#let color-darkgray = rgb("#333333")
|
||||||
#let color-gray = rgb("#5d5d5d")
|
#let color-gray = rgb("#5d5d5d")
|
||||||
#let default-accent-color = rgb("#262F99")
|
#let default-accent-color = rgb("#262F99")
|
||||||
#let default-location-color = rgb("#000")
|
#let default-location-color = rgb("#333333")
|
||||||
|
|
||||||
// const icons
|
// const icons
|
||||||
#let linkedin-icon = box(
|
#let linkedin-icon = box(
|
||||||
@@ -375,14 +375,17 @@
|
|||||||
/// - location (string): The location of the resume entry
|
/// - location (string): The location of the resume entry
|
||||||
/// - date (string): The date of the resume entry, this can be a range (e.g. "Jan 2020 - Dec 2020")
|
/// - date (string): The date of the resume entry, this can be a range (e.g. "Jan 2020 - Dec 2020")
|
||||||
/// - description (content): The body of the resume entry
|
/// - description (content): The body of the resume entry
|
||||||
|
/// - title-link (string): The link to use for the title (can be none)
|
||||||
|
/// - accent-color (color): Override the accent color of the resume-entry
|
||||||
|
/// - location-color (color): Override the default color of the "location" for a resume entry.
|
||||||
#let resume-entry(
|
#let resume-entry(
|
||||||
title: none,
|
title: none,
|
||||||
location: "",
|
location: "",
|
||||||
date: "",
|
date: "",
|
||||||
description: "",
|
description: "",
|
||||||
|
title-link: none,
|
||||||
accent-color: default-accent-color,
|
accent-color: default-accent-color,
|
||||||
location-color: default-location-color,
|
location-color: default-location-color,
|
||||||
title-link: none,
|
|
||||||
) = {
|
) = {
|
||||||
let title-content
|
let title-content
|
||||||
if type(title-link) == "string" {
|
if type(title-link) == "string" {
|
||||||
@@ -392,7 +395,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
pad[
|
pad[
|
||||||
#justified-header(title-content, text(fill: location-color)[#location])
|
#justified-header(title-content, location)
|
||||||
#secondary-justified-header(description, date)
|
#secondary-justified-header(description, date)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user