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

问题描述 投票:-1回答:1

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

  • 访问者应该很容易导入。
  • Nikola在呈现页面时不得使用密钥。
gnupg public-key nikola
1个回答
0
投票

默认情况下,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'```
© www.soinside.com 2019 - 2024. All rights reserved.