没有项目描述

pelican-advance-embed-tweet的Python项目详细描述


在鹈鹕博客中嵌入推文。这次回购是预付款 插件的版本 lqez没有 样式的配置。

AuthorFundor333
Emailf333@fundor333.com
Homepagehttps://www.fundor333.com
Githubhttps://github.com/fundor333
Twitterhttps://twitter.com/fundor333

#如何使用

  1. 使用pip install pelican_advance_embed_tweet
  2. 安装插件
  3. pelican_advance_embed_tweet放入插件设置列表。
    • PLUGINS = ['pelican_advance_embed_tweet']
  4. 将配置添加到pelicanconf.py

配置

配置实现了Twitter Api

Config LabelDescription
TWITTER_CARDSWhen set to ^{tt5}$, links in a Tweet are not expanded to photo, video, or link previews.
TWITTER_THEMEWhen set to ^{tt6}$, only the cited Tweet will be displayed even if it is in reply to another Tweet.
TWITTER_CONVERS ATIONWhen set to ^{tt7}$, displays Tweet with light text over a dark background.
TWITTER_LINK_C OLORAdjust the color of Tweet links with a hexadecimal color value.
TWITTER_WIDTHThe maximum width of the rendered Tweet in whole pixels. This value should be between 250 and 550 pixels.
TWITTER_ALIGNFloat the Tweet ^{tt8}$, ^{tt9}$, or ^{tt10}$ relative to its container. Typically set to allow text or other content to wrap around the Tweet.
TWITTER_LANGA supported Twitter language code. Loads text components in the specified language. Note: does not affect the text of the cited Tweet.
TWITTER_DNTWhen set to true, the Tweet and its embedded page on your site are not used for purposes that include personalized suggestions and personalized ads.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何在Kotlin中加速从短数组到位图的转换   java如何计算用户从5个组合框中选择的项目的总成本   如何实现Java图像处理来进行模板匹配?   java Android Studio Gradle找不到'com'。安卓支持:设计:22.2.0'(Android设计支持库)   Tomcat上的hibernate Java持久性没有名为EntityManager的持久性提供程序   Weblogic中有两个EAR的java Log4j日志记录问题   Java忽略字符串   java stringbuffer和“0&”导致截断或转义   在java中用猜测的字母替换破折号   java使用枚举查找长字符串描述   在Android Studio中选择图像后,java应用程序退出(未调用OnActivityResult)   java什么是类似于Rails的面向对象桌面应用程序框架?   java有没有一种方法可以在调试时永久更改变量的值,从而在后续调用中不被重写?   java NullPointerException从数据库获取数据时,使用注释调用Struts 2中的操作