faviconPath

@get:Input
abstract val faviconPath: Property<String>(source)

The path to use for the favicon for the site.

This is a convenience property which, if set, causes a <link rel="icon" href="$faviconPath"> element to be added to the site's <head> block.

This value defaults to "/favicon.ico". If you don't want Kobweb to create the link element for you, you can set this value to "".

The path of the favicon is relative to the public folder in your resources directory. For example, "/favicon.ico" (which is the default value) will refer to the icon file located at "jsMain/resources/public/favicon.ico".

You are expected to begin your path with a '/' to explicitly indicate that the path will always be rooted at the top of your site even if you are visited a nested subpage. If you do not add a leading slash yourself, one will be added for you.

Note that if you completely replace the head block (e.g. head.set(...) in your build script), this value will not be used.