帖子节选和图片

节选

ABlog,默认情况下,使用文档的第一段作为帖子的摘录。在摘录中使用的默认段落数是通过 post_auto_excerpt 配置变量控制。这个选项可以用 post 指令中的 :excerpt: 选项来覆盖。

另外,你可以在 post 指令中提供一些内容,如下

.. post:: Apr 15, 2014

   This is all of the excerpt for this post.

这个内容将被用作档案页的摘录。此外,如果你不希望摘录内容包含在文章中,你可以使用 :exclude: 选项,如下所示

.. post:: Apr 15, 2014
   :exclude:

   This is all of the excerpt for this post.
   It will be displayed in archive pages and excluded from the post page.

图片

让我们首先在这篇文章中包括一个本地和一个非本地的图像。

../_images/ablog.png https://www.python.org/static/community_logos/python-logo.png

为了链接其中的第二个,我们添加 :image: 2 选项在 post 指令中。

Comments

comments powered by Disqus