Fork 0
ActivityStreams for Hugo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Jan-Lukas Else 0c383d3265
3 years ago
layouts/_default Update 3 years ago
LICENSE Add README.md and LICENSE 3 years ago
README.md Move repo to my own git 3 years ago
config.yaml Init 3 years ago
go.mod Move repo to my own git 3 years ago


AcitivtyStreams support for Hugo

This is a Hugo module, you can use in Hugo, to generate ActivityStreams representations of posts.

How to use

You can use this module by adding it to your Hugo config (example of a YAML Hugo configuration file):

   # other imports ...
   # The hugo-activitystreams module:
   - path: git.jlel.se/jlelse/hugo-activitystreams

You also need to specify the custom output format activity for the kinds index and page. When you add a custom output format, you need to make sure to also include the default ones.

    - "html" # Default
    - "rss" # Default
    - "activity"
    - "html" # Default
    - "activity"

And finally (if you want to use use your website as an ActivityPub actor - middleware to do that with Hugo is coming soon...), you need to configure two params: inbox with the ActivityPub inbox URL and publickeypem with the PEM format of the public key of the key you use to sign activities.

  # Your other params...
  # ActivityPub params
    inbox: https://blog.example/activitypub/de/inbox
    publickeypem: -----BEGIN PUBLIC KEY-----...


By default the ActivityPub actor has the IRI of the language-based homepage. Example:

  • Domain: jlelse.blog (a Hugo blog with two configured languages, default language "en")


This project is MIT licensed. See the license here.