Adding users who write articles

Hello, can someone please let me know how to create user accounts who login and write and publish articles ?

Jekyll and other static sites do not support this as there is no server or database running to do queries against and store passwords. There is just a Apache/Nginx server in production serving static html files

For local use you can use Jekyll Admin gen as an item in Gemfile and then you get a nice CMS view like Wordpress. But only works locally and is not secure as it needs no sign in

For production environments I’d highly recommend forestry.io as you can hook your github repo up to it and invite users to edit in the CMS. And it’s free. You can create front matter templates which means you can enforce structure and validation eg a post must have a title and a list of tags and a boolean published flag
Forestry doesn’t care if you use Github Pages or Netlify or nothing to render your site. It just cares about your CMS layer
Forestry has a couple of starter sites too :slight_smile:

You can also look at Netlify CMS which is also free and supports user login after you invite them by email
This works well if you are hosting on Netlify already
Note you need an admin config file to determine field types to be set. So more overhead to get started
See Netlify CMS docs for tutorials

Both forestry and Netlify CMS do not work locally so you CMS will be cloud-based.

1 Like

Resources

Both platforms

Forestry screenshots

1 Like

I would highly recommend netlify + netlify cms with open authoring: https://www.netlifycms.org/docs/open-authoring/

1 Like