POSSEVASAM (Publish Own Site, Syndicate Elsewhere Via Arcane Semi-Automated Means)

, updated

  1. In Emacs locally, run C-c c w, write the post, C-c to finish, select the text of the post and C-c C-e h H to generate the HTML.
  2. On the server, emacs /var/www/tre/public/notes/YYYYMMDD/index.html or replace notes with e.g. ffx/meta. After the file opens, M-x m-dir RET RET.
  3. If it’s going to /notes, expand the post snippet; if it’s meta, expand ffx (to do: other types of FFX post). Respond to the prompts for title etc. (if it’s meta, need the date of the previous one).
  4. Copy in the HTML from the new buffer, from after <div id="content" class="content"> to just before the </div> preceding <div id="content" class="content">.
  5. Probably select the whole buffer and then run M-x indent-region.
  6. Meta needs the previous post to be opened, then expand metanext in the navigation footer (probably need to type a space after the index link).
  7. C-x C-f /var/www/tre/public/notes/index.html and expand notesindex in the relevant <details>, or C-x C-f /var/www/tre/public/ffx/meta/index.html and expand metaindex, as appropriate.
  8. Sitemap will be updated at 3h UTC.
  9. C-x C-f /var/www/tre/public/feed.xml, then expand rssitem.
  10. Quit Emacs and then run curl -i -d "source=URL&target=https://fed.brid.gy/" https://fed.brid.gy/webmention.