Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ The `hwr(...)` function is the main entry point to configure and render the **PT
enrollment-year: "2024",
semester: "2",
company-supervisor: "Jane Doe",
company-logo: image("images/logo.png", width: 46%),
),

custom-entries: (
Expand Down
20 changes: 10 additions & 10 deletions lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,22 @@

// Logo settings
v(equal-spacing)
if metadata.at("uni-logo", default: "template/images/header_logo.png") != none and metadata.at("company-logo", default: none) != none {
if metadata.at("uni-logo", default: none) != none and metadata.at("company-logo", default: none) != none {
grid(
columns: (1fr, 1fr),
rows: (auto),
grid.cell(
colspan: 1,
align: center,
image(metadata.at("uni-logo", default: "template/images/header_logo.png"), width: 70%),
metadata.uni-logo,
),
grid.cell(
colspan: 1,
align: center,
image(metadata.company-logo, width: 70%),
metadata.company-logo,
),
)
} else if metadata.at("uni-logo", default: "template/images/header_logo.png") != none {
} else if metadata.at("company-logo", default: none) != none {
grid(
columns: (0.5fr),
rows: (auto),
Expand All @@ -111,10 +111,10 @@
grid.cell(
colspan: 1,
align: center,
image(metadata.at("uni-logo", default: "template/images/header_logo.png"), width: 46%)
),
metadata.company-logo,
)
)
} else if metadata.at("company-logo", default: none) != none {
} else {
grid(
columns: (0.5fr),
rows: (auto),
Expand All @@ -123,8 +123,8 @@
grid.cell(
colspan: 1,
align: center,
image(company-logo, width: 46%),
)
metadata.at("uni-logo", default: image("template/images/header_logo.png", width: 46%))
),
)
}
v(equal-spacing)
Expand All @@ -146,7 +146,7 @@

// Middle section
if language == "de" {
text(1.1em, [vorgelegt am #metadata.at("date-of-publication", default: datetime.today().display())])
text(1.1em, [vorgelegt am #metadata.at("date-of-publication", default: datetime.today().display("[day].[month].[year]"))])
} else {
text(1.1em, [published on #metadata.at("date-of-publication", default: datetime.today().display())])
}
Expand Down
4 changes: 2 additions & 2 deletions typst.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "clean-hwr"
version = "0.1.0"
version = "0.1.1"
compiler = "0.13.1"
entrypoint = "lib.typ"
repository = "https://github.com/testspieler09/clean-hwr-template"
repository = "https://github.com/testspieler09/clean-hwr"
authors = ["Pépe Hanisch"]
license = "MIT"
description = "A simple and good looking template for the Berlin School for Economics and Law"
Expand Down