feat: allow empty company logo
This commit is contained in:
parent
9b90660353
commit
a796f5ecfb
|
@ -59,7 +59,7 @@
|
|||
header: (
|
||||
content-padding: 1.5em,
|
||||
underline-top-padding: 0pt,
|
||||
logo-height: 3em,
|
||||
logo-height: 5em,
|
||||
logo-image: "res/ABB.svg"),
|
||||
footer: (
|
||||
content-padding: 1.5em),
|
||||
|
|
|
@ -11,6 +11,25 @@
|
|||
|
||||
#let thesis = config.thesis
|
||||
|
||||
// logo of ABB and DHBW
|
||||
#v(-config.style.header.content-padding)
|
||||
#grid(
|
||||
// set width of columns
|
||||
// we need two, so make both half the page width
|
||||
columns: (50%, 50%),
|
||||
// left align logo of ABB
|
||||
if config.style.header.logo-image == none {
|
||||
// error
|
||||
} else if config.style.header.logo-image.len() > 0 {
|
||||
align(left, image(config.style.header.logo-image, height: config.style.header.logo-height))
|
||||
} else {
|
||||
align(left, image("../res/DHBW.svg", height: config.style.header.logo-height))
|
||||
},
|
||||
// right align logo of DHBW
|
||||
if config.style.header.logo-image.len() > 0 {
|
||||
align(right, image("../res/DHBW.svg", height: config.style.header.logo-height))
|
||||
})
|
||||
|
||||
#set align(center)
|
||||
|
||||
// title
|
||||
|
|
|
@ -294,19 +294,7 @@
|
|||
let current-page = here().page()
|
||||
|
||||
if current-page == 1 {
|
||||
// logo of ABB and DHBW
|
||||
grid(
|
||||
// set width of columns
|
||||
// we need two, so make both half the page width
|
||||
columns: (50%, 50%),
|
||||
// left align logo of ABB
|
||||
if style.header.logo-image == none {
|
||||
[]
|
||||
} else if style.header.logo-image.len() > 0 {
|
||||
align(left, image(style.header.logo-image, height: style.header.logo-height))
|
||||
},
|
||||
// right align logo of DHBW
|
||||
align(right, image("res/DHBW.svg", height: style.header.logo-height)))
|
||||
// logo moved to content
|
||||
|
||||
} else if query(<end-of-content>)
|
||||
.first()
|
||||
|
|
Loading…
Reference in New Issue