Closed jaredly closed 7 years ago
+1
+1
I see pages in the menu but I need to create/delete them via console at the moment. Is the implementation planned?
not actively :) I don't tend to create/delete static pages too often
Useful starting points:
Server:
This is the current endpoint for getting/updating pages link. You can see below it the posts/new
endpoint -- we'll need a pages/new
endpoint that will just take a title
, and then return the page model. Here's the call on the front-end that will use the endpoint.
Frontend: The frontend is mostly implemented for it (see this commented out line) -- I think you'll only need to uncomment that line.
Delete isn't even supported for posts yet :D but it also shouldn't be too hard. If someone wants to put together the backend endpoint, I can put a button somewhere.
i fix the 'new page' feature
plz accept my pr:
https://github.com/jaredly/hexo-admin/pull/117/commits/32dea78eeae09cd9aa0235c3d33d77b6094ceb87
Added and merged in #120
This would be good to implement