Jump to content

OpenJournal:Getting started

From openjournal


Embedding OpenJournal content on another site

Article titles

fetch('https://openjournal.wiki/users/JohnSmith/posts').then(r=>r.json()).then(d=>console.log(d.query.pages.filter(p=>!p.redirect).map(p=>p.title.replace(/^User:[^/]+\//,''))));

Would return

[
  'Welcome to OpenJournal!',
  'Entr - The file watcher you’ve never heard of',
  "You don't need Vimwiki",
  'Linux Audio Production',
  '10 minutes with K'
]

Article content

fetch('https://openjournal.wiki/users/Professorlamp/posts/Welcome_to_OpenJournal!').then(r=>r.text()).then(t=>console.log(t));
Your articles content