Skip to content

Snippet Injection

cinwell.li edited this page Jun 6, 2021 · 3 revisions

Often you want to inject HTML snippets into sharing pages. Most analytics providers, comment services will give you an HTML snippet and ask you to add it to every page on your site. Notea lets you to inject HTML snippets into at the end of the </article> tag on the sharing page.

A simple example

Injection Result
image image

Use tailwindcss

The tailwindcss is a CSS framework. You can use it, or write your own style.

Injection Result
image image

Built-in variables

You can get the variables of the current sharing page and provide them to third-party plugins.

Injection Result
image image

Available variables: id, title, pid, content, date, deleted, shared, pinned, url

Clone this wiki locally