Skip to content

artur-ios-dev/ReadTimePublishPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReadTime plugin for Publish

A Publish plugin that makes it easy to get a read time for your articles.

Build Status

Installation

To install it into your Publish package, add it as a dependency within your Package.swift manifest:

let package = Package(
    ...
    dependencies: [
        ...
        .package(url: "https://github.com/artrmz/ReadTimePublishPlugin", from: "0.1.0")
    ],
    targets: [
        .target(
            ...
            dependencies: [
                ...
                "ReadTimePublishPlugin"
            ]
        )
    ]
    ...
)

For more information on how to use the Swift Package Manager, check its official documentation.

Usage

import ReadTimePublishPlugin
...
.unwrap(item.readTime().time, { .span("\($0) min") })
...

About

A Read Time plugin for the Publish static site generator

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages