由Nikola website generator生成的在网站上包含gpg公钥的最佳方法是什么?
默认情况下,files/
文件夹中的所有文件都将1:1复制到输出文件中。因此,如果您使用默认配置:在页面上使用公钥,则只需将其存储在files/key.txt
中,它将以https://yourpage.com/key.txt
的形式提供。
在conf.py
中,您可以找到以下内容:
# One or more folders containing files to be copied as-is into the output.
# The format is a dictionary of {source: relative destination}.
# Default is:
# FILES_FOLDERS = {'files': ''}
# Which means copy 'files' into 'output'```