Add 'content/posts/favicons.md'

This commit is contained in:
Marcus Noble 2020-11-10 09:57:34 +00:00
parent 083476e9b1
commit 38e5926d0d
1 changed files with 18 additions and 0 deletions

18
content/posts/favicons.md Normal file
View File

@ -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