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

  1. In Emacs locally, run C-c c d, write the post, C-c to finish, C-c C-e h o to preview if necessary, send to DW using M-x dwpost.
  2. Find the post at https://tobli.dreamwidth.org?skip=1, click the edit button, copy all but the outermost HTML tag (<div id="content">).
  3. 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.
  4. 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).
  5. Paste in the copied HTML.
  6. Go to somewhere near the top of the page and run M-x replace-string, then replace https://tre.praze.net with nothing.
  7. Search for <user and replace by running M-x dwuser and M-x dwcomm as necessary.
  8. Make any other ad hoc changes.
  9. Probably select the whole buffer and then run M-x indent-region.
  10. 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).
  11. If comments are off, C-c C-e k on <details id="responses"> but then go into <div id="federation"> and expand synd.
  12. 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.
  13. Sitemap will be updated at 3h UTC.
  14. C-x C-f /var/www/tre/public/feed.xml, then expand rssitem.
  15. Quit Emacs and then run curl -i -d "source=URL&target=https://fed.brid.gy/" https://fed.brid.gy/webmention.