Swiftpack.co - tgymnich/FaviconPublishPlugin as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by tgymnich.
tgymnich/FaviconPublishPlugin 0.1.0
🏞Add favicons to the links on your blog
⭐️ 2
🕓 1 year ago
macOS
.package(url: "https://github.com/tgymnich/FaviconPublishPlugin.git", from: "0.1.0")

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:

.package(url: "https://github.com/tgymnich/FaviconPublishPlugin.git", from: "0.0.1")

Setup

To load the plugin simply add these lines:


import FaviconPublishPlugin

...

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

GitHub

link
Stars: 2
Last commit: 12 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Release Notes

1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics