Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tgymnich/FaviconPublishPlugin

🏞Add favicons to the links on your blog
https://github.com/tgymnich/FaviconPublishPlugin

favicons publish-plugin

Last synced: 3 months ago
JSON representation

🏞Add favicons to the links on your blog

Awesome Lists containing this project

README

        

# FaviconPublishPlugin

Add Favicons to your links.

# Install

Add this to your `style.css:`
```
.wrapper a[href^="http"] {
padding-left: 19px;
background-size: 16px 16px;
background-repeat: no-repeat;
background-position: left center;
}

.wrapper a {
display: block;
margin: 10px;
text-decoration: none;
}
```

In your Package.swift add:
```swift
.package(url: "https://github.com/tgymnich/FaviconPublishPlugin.git", from: "0.0.1")
```

# Setup

To load the plugin simply add these lines:

```swift

import FaviconPublishPlugin

...

try MyWebsite().publish(
...
plugins: [.addFaviconsToLinks(in: ".wrapper")]
])
```