4.4.1 Making & Recording Webmentions

The first step in making a Webmention is to express that intent in our Org Mode source files. indie-org implements this by See Adding Hyperlink Types in Adding Hyperlink Types, Adding Hyperlink Types.

When the site author invokes indie-org-webmentions-enable four new link types will be defined:

  1. mention
  2. reply
  3. like
  4. repost

Each link type has a few properties, in particular :follow and :export. indie-org’s link types all implement follow in the same way as standard HTML links; it’s the export aspect in which they differ. While they will all render as standard HTML, they will take the opportunity to note each of them via indie-org-webmentions-record-webmention

The site author shall include their publication state’s indie-org-webmentions-made (see Publication Environments & State) in the project properties (under the name :indie-org/webmentions-made); at export time, the custom link types will, first, produce See Microformats appropriate to the sort of webmention being made, then invoke indie-org-webmentions-record-webmention to record them in the current publication environment’s state.