Jonas Stein
Jonas Stein

Reputation: 7043

How to embedd a gpg key in static Nikola websites?

What is the best way to include gpg public keys on a website, which is generated by the Nikola website generator?

Edit: After 7 months I think the ideal solution makes use of WKD

Upvotes: 0

Views: 24

Answers (1)

Karl Lorey
Karl Lorey

Reputation: 1616

As a default, all files within the files/ folder will be copied 1:1 into the output files. So if you're using the default config: to have your public key on your page, you can simply store it in files/key.txt and it will be available as https://yourpage.com/key.txt.

In the conf.py you can find the following:

# 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'```

Upvotes: 1

Related Questions