jaredly / hexo-admin

An Admin Interface for Hexo
http://jaredly.github.io/hexo-admin/
1.77k stars 299 forks source link

Support adding static pages #2

Closed jaredly closed 7 years ago

jaredly commented 10 years ago

This would be good to implement

oeway commented 9 years ago

+1

nkoehring commented 8 years ago

+1

I see pages in the menu but I need to create/delete them via console at the moment. Is the implementation planned?

jaredly commented 8 years ago

not actively :) I don't tend to create/delete static pages too often

jaredly commented 8 years ago

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.

jaredly commented 8 years ago

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.

yfsoftcom commented 7 years ago

i fix the 'new page' feature plz accept my pr:
https://github.com/jaredly/hexo-admin/pull/117/commits/32dea78eeae09cd9aa0235c3d33d77b6094ceb87

pirtleshell commented 7 years ago

Added and merged in #120