mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 00:36:33 +01:00
docs(guide): update html docs with sharing
This commit is contained in:
26563
docs/User Guide/!!!meta.json
vendored
26563
docs/User Guide/!!!meta.json
vendored
File diff suppressed because it is too large
Load Diff
@@ -72,15 +72,17 @@ You can inject custom JavaScript into the shared note using the `~shareJs` relat
|
||||
You can inject custom HTML snippets into specific locations of the shared page using the `~shareHtml` relation. The HTML note should contain the raw HTML content you want to inject, and you can control where it appears by adding the `#shareHtmlLocation` label to the HTML snippet note itself.
|
||||
|
||||
The `#shareHtmlLocation` label accepts values in the format `location:position`:
|
||||
- **Locations**: `head`, `body`, `content`
|
||||
- **Positions**: `start`, `end`
|
||||
|
||||
* **Locations**: `head`, `body`, `content`
|
||||
* **Positions**: `start`, `end`
|
||||
|
||||
For example:
|
||||
- `#shareHtmlLocation=head:start` - Injects HTML at the beginning of the `<head>` section
|
||||
- `#shareHtmlLocation=head:end` - Injects HTML at the end of the `<head>` section (default)
|
||||
- `#shareHtmlLocation=body:start` - Injects HTML at the beginning of the `<body>` section
|
||||
- `#shareHtmlLocation=content:start` - Injects HTML at the beginning of the content area
|
||||
- `#shareHtmlLocation=content:end` - Injects HTML at the end of the content area
|
||||
|
||||
* `#shareHtmlLocation=head:start` - Injects HTML at the beginning of the `<head>` section
|
||||
* `#shareHtmlLocation=head:end` - Injects HTML at the end of the `<head>` section (default)
|
||||
* `#shareHtmlLocation=body:start` - Injects HTML at the beginning of the `<body>` section
|
||||
* `#shareHtmlLocation=content:start` - Injects HTML at the beginning of the content area
|
||||
* `#shareHtmlLocation=content:end` - Injects HTML at the end of the content area
|
||||
|
||||
If no location is specified, the HTML will be injected at `content:end` by default.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user