如果我有一些文档,比如Galleria的文档,我该如何设置,使得当我运行
我看到我可以潜在地使用
make html
命令时,它会为每个页面添加自定义页脚?我看到我可以潜在地使用
conf.py
的LaTeX导言区部分,如果我将其输出为PDF格式。make html
命令时,它会为每个页面添加自定义页脚?conf.py
的LaTeX导言区部分,如果我将其输出为PDF格式。{% extends '!layout.html' %}
{% block footer %}
<!-- your html code here -->
{% endblock %}
_templates/
的子目录中,命名为layout.html
,并确保告诉conf.py
在哪里找到这个目录。# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
conf.py
中的templates_path
设置,_templates
目录的默认位置在与conf.py
相同的目录中,这应该是您的source
目录。另外,如果您希望页脚具有与默认页脚相同的样式,您需要将页脚的HTML内容包含在<div class="footer">
标签中。 - Dennis{% extends '!footer.html' %} {% block extrafooter %} <!-- 在这里添加你的HTML代码 --> {% endblock %}
- Steven Almeroth