Allow embedding tweets

This commit is contained in:
Maxime Vaillancourt
2021-06-16 23:42:19 -04:00
parent f4d4be2b60
commit 97232001be
3 changed files with 37 additions and 0 deletions

View File

@@ -25,6 +25,14 @@ Of course, you can also link to external websites, like this: [this is a link to
[^1]: This is a footnote. For more information about using footnotes, check out the [Markdown Guide](https://www.markdownguide.org/extended-syntax/#footnotes).
### Tweet embedding
Note: This behavior is disabled by default for privacy reasons. See "Site configuration" section below to enable it.
You may include a tweet URL on its own line (like below), and it would be replaced with an official Twitter embed if the site configuration demands it.
https://twitter.com/jack/status/20
### Site configuration
Some behavior is configurable by tweaking the `_config.yml` file.
@@ -33,6 +41,8 @@ Some behavior is configurable by tweaking the `_config.yml` file.
**`open_external_links_in_new_tab`**: when set to `true`, this makes external links open in new tabs. Set to `false` to open all links in the current tab.
**`embed_tweets`**: when set to `true`, tweet URLs on their own lines will be replaced with a Twitter embed. Default value is `false`.
### Automatic bi-directional links
Notice in the "Notes mentioning this note" section that there is another note linking to this note. This is a bi-directional link, and those are automatically created when you create links to other notes.