From 38e5926d0d17878504d672b76bcfb33e8e5cb182 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Tue, 10 Nov 2020 09:57:34 +0000 Subject: [PATCH] Add 'content/posts/favicons.md' --- content/posts/favicons.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 content/posts/favicons.md diff --git a/content/posts/favicons.md b/content/posts/favicons.md new file mode 100644 index 0000000..787e524 --- /dev/null +++ b/content/posts/favicons.md @@ -0,0 +1,18 @@ +--- +title: "How to get favicon of any site" +date: 2020-11-10T12:49:37+01:00 +draft: false +tags: +images: +- /images/favicons.gif +--- + +If you ever find yourself needing to display a small icon for a 3rd party URL but don't want to have to crawl the site to pull out the favicon URL then you can make use of a Google CDN: + +``` +https://s2.googleusercontent.com/s2/favicons?domain_url=https://www.bbc.co.uk/ +``` + +Example: ![](https://s2.googleusercontent.com/s2/favicons?domain_url=https://www.bbc.co.uk/) + +You can even provide