如何在静态 Nikola 网站中嵌入 gpg 密钥?

How to embedd a gpg key in static Nikola websites?

在由 Nikola website generator 生成的网站上包含 gpg public 密钥的最佳方法是什么?

编辑:7 个月后,我认为理想的解决方案是使用 WKD

默认情况下,files/ 文件夹中的所有文件都将被复制 1:1 到输出文件中。因此,如果您使用默认配置:要在您的页面上显示 public 键,您只需将其存储在 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'```