schnti/video

kirby privacy video tag

Installs: 143

Dependents: 0

Suggesters: 0

Security: 0

Stars: 16

Watchers: 4

Forks: 1

Open Issues: 7

Type:kirby-plugin

1.4.0 2023-12-11 15:13 UTC

README

A plugin for Kirby 3 CMS to embed content from YouTube without compromising privacy.

Commercial Usage

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

Installation

Download

Download the files and place them inside site/plugins/video.

Composer

composer require schnti/video

Git Submodule

You can add the plugin as a Git submodule.

$ cd your/project/root
$ git submodule add https://github.com/schnti/kirby3-video.git site/plugins/video
$ git submodule update --init --recursive
$ git commit -am "Add Kirby video plugin"

Run these commands to update the plugin:

$ cd your/project/root
$ git submodule foreach git checkout master
$ git submodule foreach git pull
$ git commit -am "Update submodules"
$ git submodule update --init --recursive

CSS (SCSS)

<link rel="stylesheet" href="plugins/video/dist/youtube.css">

or

@import "site/plugins/video/src/youtube";

JS

<script src="site/plugins/video/src/youtube.js"></script>

or

require('site/plugins/video/src/youtube');

How to use it

Use this kirbytag

(youtube: g5BEXgNHZJU)