0

我意识到它应该是这样的:{filename}path/to/file或者{attach}path/to/file但是如何在模板<img src="?"/>中指定路径以便正确呈现?

4

1 回答 1

0

您正在寻找的是{static}path/to/file.

此外,您不必img在模板中指定标签。

Pelican(或者更确切地说是 docutils)负责处理它。

编辑:

关于布局,我倾向于使用:

.. image:: {static}/path/to/image.jpg
    :width: 100%
于 2021-11-13T23:12:28.503 回答