hashandsalt/kirby3-schema

Kirby 3 - Schema

Installs: 70

Dependents: 1

Suggesters: 0

Security: 0

Stars: 11

Watchers: 0

Forks: 0

Open Issues: 1

Type:kirby-plugin

v0.0.1 2020-01-24 09:07 UTC

This package is auto-updated.

Last update: 2020-10-24 10:58:59 UTC


README

This plugin is for easily generating JSON Schema structured data.

Install

Download

Download and copy this repository to /site/plugins/kirby3-schema.

Composer

composer require hashandsalt/kirby3-schema

Commercial Usage

This plugin is free but if you use it in a commercial project please consider to

Usage

It's a wrapper around spatie/schema-org that turns it into a site method, used like this:

<?= $site->schema('LocalBusiness')
  ->name('Hash&Salt')
  ->email('email@example.com')
  ->contactPoint($page->schema('contactPoint')
  ->areaServed('Worldwide')
  ) ?>

It supports anything thats in the RDFa spec for structured data which is about 600 data points. Refer to schema.org site for details on each bit. Go nuts :)