decouple logo and icon

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-03-18 14:08:16 +01:00
parent 4693003806
commit 07a0392d8c
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
5 changed files with 18 additions and 16 deletions

View file

@ -7,10 +7,8 @@
#let webpage(
/// Page url
url,
/// Page logo, also used for icon, so it *needs* to be path (TODO: fix when typst support multi-file out)
logo,
/// Alt-text for the log
logo-alt,
/// Logo in page header
logo: none,
/// Title of the page, default to document.title
title: none,
/// Page header
@ -18,6 +16,8 @@
/// Use only for html 'lang' attribute.
lang: "en",
//-- <head> only args --
/// Website icon, *needs* to be path (TODO: fix when typst support multi-file out)
icon: none,
/// Type of the page for open-graph data
og-type: "website",
/// Name of the site for metadata of the page
@ -31,7 +31,8 @@
/// List of related sites for metadata
me-links: (),
//-- Body --
/// Navigation menu content, css style expect a list
/// Navigation menu content, css style expect a list of links, but it can
/// be anything
menu: none,
/// Body of the page
body
@ -41,7 +42,7 @@
html_head(
url,
title,
logo,
icon: icon,
og-type: og-type,
site-name: site-name,
description: description,
@ -50,8 +51,7 @@
me-links: me-links
)
html_body(
logo,
logo-alt,
logo: logo,
header: header,
menu: menu,
body