Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tgymnich/FaviconPublishPlugin
- Owner: tgymnich
- License: mit
- Created: 2020-01-16T03:04:45.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T23:24:11.000Z (9 months ago)
- Last Synced: 2024-07-28T03:07:51.134Z (4 months ago)
- Topics: favicons, publish-plugin
- Language: Swift
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-publish - Favicons
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")]
])
```