Merge pull request #55 from DeveloperPaul123/feature/show-hide-footer
feat: add ability to show/hide footer
This commit is contained in:
90
lib.typ
90
lib.typ
@@ -63,6 +63,50 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#let __coverletter_footer(author, language, date, lang_data) = {
|
||||||
|
set text(
|
||||||
|
fill: gray,
|
||||||
|
size: 8pt,
|
||||||
|
)
|
||||||
|
__justify_align_3[
|
||||||
|
#smallcaps[#date]
|
||||||
|
][
|
||||||
|
#smallcaps[
|
||||||
|
#if language == "zh" or language == "ja" [
|
||||||
|
#author.firstname#author.lastname
|
||||||
|
] else [
|
||||||
|
#author.firstname#sym.space#author.lastname
|
||||||
|
]
|
||||||
|
#sym.dot.c
|
||||||
|
#linguify("cover-letter", from: lang_data)
|
||||||
|
]
|
||||||
|
][
|
||||||
|
#counter(page).display()
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
#let __resume_footer(author, language, lang_data, date) = {
|
||||||
|
set text(
|
||||||
|
fill: gray,
|
||||||
|
size: 8pt,
|
||||||
|
)
|
||||||
|
__justify_align_3[
|
||||||
|
#smallcaps[#date]
|
||||||
|
][
|
||||||
|
#smallcaps[
|
||||||
|
#if language == "zh" or language == "ja" [
|
||||||
|
#author.firstname#author.lastname
|
||||||
|
] else [
|
||||||
|
#author.firstname#sym.space#author.lastname
|
||||||
|
]
|
||||||
|
#sym.dot.c
|
||||||
|
#linguify("resume", from: lang_data)
|
||||||
|
]
|
||||||
|
][
|
||||||
|
#counter(page).display()
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
/// Show a link with an icon, specifically for Github projects
|
/// Show a link with an icon, specifically for Github projects
|
||||||
/// *Example*
|
/// *Example*
|
||||||
/// #example(`resume.github-link("DeveloperPaul123/awesome-resume")`)
|
/// #example(`resume.github-link("DeveloperPaul123/awesome-resume")`)
|
||||||
@@ -146,6 +190,7 @@
|
|||||||
date: datetime.today().display("[month repr:long] [day], [year]"),
|
date: datetime.today().display("[month repr:long] [day], [year]"),
|
||||||
accent-color: default-accent-color,
|
accent-color: default-accent-color,
|
||||||
colored-headers: true,
|
colored-headers: true,
|
||||||
|
show-footer: true,
|
||||||
language: "en",
|
language: "en",
|
||||||
font: ("Source Sans Pro", "Source Sans 3"),
|
font: ("Source Sans Pro", "Source Sans 3"),
|
||||||
body,
|
body,
|
||||||
@@ -172,27 +217,7 @@
|
|||||||
set page(
|
set page(
|
||||||
paper: "a4",
|
paper: "a4",
|
||||||
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
|
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
|
||||||
footer: [
|
footer: if show-footer [#__resume_footer(author, language, lang_data, date)] else [],
|
||||||
#set text(
|
|
||||||
fill: gray,
|
|
||||||
size: 8pt,
|
|
||||||
)
|
|
||||||
#__justify_align_3[
|
|
||||||
#smallcaps[#date]
|
|
||||||
][
|
|
||||||
#smallcaps[
|
|
||||||
#if language == "zh" or language == "ja" [
|
|
||||||
#author.firstname#author.lastname
|
|
||||||
] else [
|
|
||||||
#author.firstname#sym.space#author.lastname
|
|
||||||
]
|
|
||||||
#sym.dot.c
|
|
||||||
#linguify("resume", from: lang_data)
|
|
||||||
]
|
|
||||||
][
|
|
||||||
#counter(page).display()
|
|
||||||
]
|
|
||||||
],
|
|
||||||
footer-descent: 0pt,
|
footer-descent: 0pt,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -483,6 +508,7 @@
|
|||||||
accent-color: default-accent-color,
|
accent-color: default-accent-color,
|
||||||
language: "en",
|
language: "en",
|
||||||
font: ("Source Sans Pro", "Source Sans 3"),
|
font: ("Source Sans Pro", "Source Sans 3"),
|
||||||
|
show-footer: true,
|
||||||
body,
|
body,
|
||||||
) = {
|
) = {
|
||||||
if type(accent-color) == "string" {
|
if type(accent-color) == "string" {
|
||||||
@@ -508,27 +534,7 @@
|
|||||||
set page(
|
set page(
|
||||||
paper: "a4",
|
paper: "a4",
|
||||||
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
|
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
|
||||||
footer: [
|
footer: if show-footer [#__coverletter_footer(author, language, date, lang_data)] else [],
|
||||||
#set text(
|
|
||||||
fill: gray,
|
|
||||||
size: 8pt,
|
|
||||||
)
|
|
||||||
#__justify_align_3[
|
|
||||||
#smallcaps[#date]
|
|
||||||
][
|
|
||||||
#smallcaps[
|
|
||||||
#if language == "zh" or language == "ja" [
|
|
||||||
#author.firstname#author.lastname
|
|
||||||
] else [
|
|
||||||
#author.firstname#sym.space#author.lastname
|
|
||||||
]
|
|
||||||
#sym.dot.c
|
|
||||||
#linguify("cover-letter", from: lang_data)
|
|
||||||
]
|
|
||||||
][
|
|
||||||
#counter(page).display()
|
|
||||||
]
|
|
||||||
],
|
|
||||||
footer-descent: 0pt,
|
footer-descent: 0pt,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,8 @@
|
|||||||
),
|
),
|
||||||
profile-picture: image("./profile.png"),
|
profile-picture: image("./profile.png"),
|
||||||
language: "en",
|
language: "en",
|
||||||
font: "Times New Roman"
|
font: "Times New Roman",
|
||||||
|
// show-footer: false, // Uncomment to hide footer
|
||||||
)
|
)
|
||||||
|
|
||||||
#hiring-entity-info(entity-info: (
|
#hiring-entity-info(entity-info: (
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
date: datetime.today().display(),
|
date: datetime.today().display(),
|
||||||
language: "en",
|
language: "en",
|
||||||
colored-headers: true,
|
colored-headers: true,
|
||||||
|
show-footer: false,
|
||||||
)
|
)
|
||||||
|
|
||||||
= Experience
|
= Experience
|
||||||
|
|||||||
Reference in New Issue
Block a user