Set_favicon

Set_favicon

{% set_favicon %}

Sets the URL to the favicon for the current page, which is output by default as part of an HTML page's {{ automatic_markup }}.

This simply changes the URL for the favicon meta tag in the head of the HTML response. It does not take into consideration alternate meta tags and it does not change the response to requests for "/favicon.ico".

The current favicon URL is available at {{ automatic_markup.favicon }}

Examples

Set favicon from string

Copy
{% set_favicon "https://domain.com/path/to/image.ico" %} or {% var favicon = "https://domain.com/path/to/image.ico" %} {% set_favicon favicon %}

Set favicon from image

Copy
{% set_favicon "favicon" %} or {% image img = "favicon" %} {% set_favicon img %}

Examples

Set favicon from string

Copy
{% set_favicon "https://domain.com/path/to/image.ico" %} or {% var favicon = "https://domain.com/path/to/image.ico" %} {% set_favicon favicon %}

Set favicon from image

Copy
{% set_favicon "favicon" %} or {% image img = "favicon" %} {% set_favicon img %}