Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin interface : Content Creator – Web CRUD for articles #3

Open
sukria opened this issue Dec 4, 2023 · 0 comments
Open

Admin interface : Content Creator – Web CRUD for articles #3

sukria opened this issue Dec 4, 2023 · 0 comments

Comments

@sukria
Copy link
Owner

sukria commented Dec 4, 2023

Although it is great to be able to maintain the site's content entirely with commit and flat files, it can be quite handy to be able to have an admin area that automates all the boring bits:

  • creating a directory in the right place for the article
  • setting up meta data such as title and tags in the meta.yml file
  • provide a simple editor for the article's content

To keep things super simple and still avoid any use of DB, this interface will be accessible after a login screen that checks the user/passwords against a file created with the helper:

Admin Authentication

$ liteblog adduser 
Enter password for username: 
Confirm password: 
username has been added to liteblog/users.data

Content Creation

Once authenticated, the admin should have access to a page that list all possible actions registered by Widgets. In this case, we're speaking about the Blog widget, hence : the admin landing page should provide a "Blog" card that redirects to /admin/blog (where all admin actions of the Blog widgets are available).

This page should allow:

  • Listing of all existing articles as a table, with meta data in-line (title, category, tags, etc).
  • Actions in front of each line (Edit, Trash)
  • a Button to create a new article/page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant