EPi.Libraries.Favicons 5.2.0

EPi.Libraries.Favicons

By Jeroen Stemerdink

Build status GitHub version Platform Platform Platform NuGet GitHub license Quality Gate Status

Instructions

Add the following attribute to the ContentType you use for your settings

[ContainsSettings]

Add properties to the ContentType you use for your settings and add the attributes shown below.

[WebsiteIcon]
[UIHint(UIHint.Image)]
public virtual ContentReference Favicon { get; set; }

[MobileAppIcon]
[UIHint(UIHint.Image)]
public virtual ContentReference AppIcon { get; set; } >> use if your site is webapp capable

[ThemeColor]
public virtual string ThemeColor { get; set; } >> defaults to "#1E1E1E"

[TileColor]
public virtual string TileColor { get; set; } >> defaults to "#1E1E1E"

[ApplicationName]
public virtual string ApplicationName { get; set; } >> defaults to the name in the site definition

[ApplicationShortName]
public virtual string ApplicationShortName { get; set; } >> defaults to the name in the site definition

Add ImageResizer package to your solution or create your own resizing service.

You can create your own service by implementing IResizeService or ResizeServiceBase

Add the following to your header in your _Root,cshtml file to render the markup:

@{
    await Html.RenderPartialAsync("_Favicons");
}

Enable MVC Attribute Routing, you will need to upgrade to MVC 5+

Thanks

to Rehan Saeed for some of the ideas.

Powered by ReSharper

image

Showing the top 5 packages that depend on EPi.Libraries.Favicons.

Packages Downloads
EPi.Libraries.Favicons.ImageResizer
Image resizing service for use within EPi.Libraries.Favicons
3,642
EPi.Libraries.Favicons.ImageProcessor
Image resizing service for use within EPi.Libraries.Favicons
44
EPi.Libraries.Favicons.ImageSharp
Image resizing service for use within EPi.Libraries.Favicons
29

Update for Episerver CMS 12

.NET 6.0

.NET 7.0

Version Downloads Last updated
5.2.0 31 08/24/2023
5.1.1 21 03/27/2023
4.0.0 3,307 11/24/2017
3.0.2 221 10/24/2016
2.0.1 77 03/14/2022
1.3.0 55 03/14/2022
1.2.1 53 03/14/2022
1.2.0 49 03/14/2022
1.1.0 63 03/14/2022