没有项目描述
pelican-advance-embed-tweet的Python项目详细描述
在鹈鹕博客中嵌入推文。这次回购是预付款 插件的版本 lqez没有 样式的配置。
Author | Fundor333 |
---|---|
f333@fundor333.com | |
Homepage | https://www.fundor333.com |
Github | https://github.com/fundor333 |
https://twitter.com/fundor333 |
#如何使用
- 使用pip install pelican_advance_embed_tweet 安装插件
- 将pelican_advance_embed_tweet放入插件设置列表。
- PLUGINS = ['pelican_advance_embed_tweet']
- 将配置添加到pelicanconf.py
配置
配置实现了Twitter Api。
Config Label | Description |
---|---|
TWITTER_CARDS | When set to ^{tt5}$, links in a Tweet are not expanded to photo, video, or link previews. |
TWITTER_THEME | When set to ^{tt6}$, only the cited Tweet will be displayed even if it is in reply to another Tweet. |
TWITTER_CONVERS ATION | When set to ^{tt7}$, displays Tweet with light text over a dark background. |
TWITTER_LINK_C OLOR | Adjust the color of Tweet links with a hexadecimal color value. |
TWITTER_WIDTH | The maximum width of the rendered Tweet in whole pixels. This value should be between 250 and 550 pixels. |
TWITTER_ALIGN | Float the Tweet ^{tt8}$, ^{tt9}$, or ^{tt10}$ relative to its container. Typically set to allow text or other content to wrap around the Tweet. |
TWITTER_LANG | A supported Twitter language code. Loads text components in the specified language. Note: does not affect the text of the cited Tweet. |
TWITTER_DNT | When set to true, the Tweet and its embedded page on your site are not used for purposes that include personalized suggestions and personalized ads. |