mirror of
https://github.com/alex-s168/website.git
synced 2025-09-10 01:05:07 +02:00
new article: making of the favicon
This commit is contained in:
@@ -188,6 +188,14 @@
|
||||
padding: " + len2css(it.inset)
|
||||
}
|
||||
|
||||
#let wimage(path, width:100%, alt:"image") = {
|
||||
context if is-html() {
|
||||
html.elem("img", attrs:(src:path, alt:alt, style:"width:"+len2css(width+0pt)+";"))
|
||||
} else {
|
||||
image(path)
|
||||
}
|
||||
}
|
||||
|
||||
#let html-script(code) = {
|
||||
[#context if is-html(){
|
||||
html.elem("script", code)
|
||||
|
Reference in New Issue
Block a user