@visual-framework/vf-favicon
v1.0.3
Published
vf-favicon component
Downloads
1,774
Readme
Favicon component
About
A template to specify favicons for your site.
Usage
{% raw %}
{% render '@vf-favicon', {
apple_touch_icon: "../../assets/vf-favicon/assets/apple-touch-icon.png",
icon_32: "../../assets/vf-favicon/assets/favicon-32x32.png",
icon_16: "../../assets/vf-favicon/assets/favicon-16x16.png",
manifest: "../../assets/vf-favicon/assets/site.webmanifest",
icon_mask: "../../assets/vf-favicon/assets/safari-pinned-tab.svg",
color_mask: "#ffffff",
color_msapplication: "#ffffff",
color_theme: "#ffffff"
} %}
{% endraw %}
Yields:
{% render '@vf-favicon', {
apple_touch_icon: "../../assets/vf-favicon/assets/apple-touch-icon.png",
icon_32: "../../assets/vf-favicon/assets/favicon-32x32.png",
icon_16: "../../assets/vf-favicon/assets/favicon-16x16.png",
manifest: "../../assets/vf-favicon/assets/site.webmanifest",
icon_mask: "../../assets/vf-favicon/assets/safari-pinned-tab.svg",
color_mask: "#ffffff",
color_msapplication: "#ffffff",
color_theme: "#ffffff"
} %}
Install
This component is distributed with npm. After installing npm, you can install the vf-favicon
with this command.
$ yarn add --dev @visual-framework/vf-favicon
Make sure you import Sass requirements along with the modules. You can use a project boilerplate or the vf-sass-starter