-
Notifications
You must be signed in to change notification settings - Fork 1
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
Standalone pages #25
Comments
Some notes from my experience, not necessarily saying this is the best way to do it: I have the concept of "pages" on my site as well. They are stored the same as every other post, except that they have an additional property which is a slug that begins with a slash. e.g. this post https://aaronparecki.com/life-stack/ has a Technically I can create these pages via Micropub right now, by setting that |
Thanks @aaronpk. I'd be fine with using |
Like I said, I'm not necessarily saying this is the best option, but it worked for me and was easier than adding a new "type" of post in my system. |
So in Koype, I've done this by using a custom type for content. Like instead of sending a Editing it would be similar to editing a post using Micropub. The entire body is stored in |
@jalcine That's interesting. I hadn't considered |
Thinking more about this, the biggest problem with "/" is querying for pages. As was mentioned in chat, you could have I'm fine with it if that's the consensus. But it seems more like an implementation detail than a full feature of Micropub. |
Yeah, this seems like it’d end up being an implementation detail. I’m deeply in favor though of the (Originally published at: https://v2.jacky.wtf/post/d0bd7253-f656-4bf3-9a89-47d99f7c0a30) |
Regarding this, I explicitly leaned on using |
I'm planning on supporting pages with @aaronpk's idea of |
As I mentioned above, I still haven't seen any answer to how to query a list of standalone pages using this I've already implemented the |
I should have added… @kisik21, that's a good point about compatibility with existing Micropub clients. It makes me wonder if there could be a hybrid solution: full page support uses |
IMHO, the x is ugly and I don't think we should do custom formats. The h-entry without a published date seems like a perfectly fine solution and I personally don't see any problems with it. Disclaimer: I didn't exactly read the whole thread thoroughly, so I might have missed something important. |
I agree the |
Maybe we could make a separate command like |
Also, I've seemingly forgot that most Micropub endpoints add a "published" automatically, like mine does. |
The use of I’d want to opt for something that doesn’t require too many changes in a micropub endpoint and leans more on markup than anything too blackbox-y. (Originally published at: https://v2.jacky.wtf/post/b55c178c-47ec-4b92-bb58-ff63d5e275c8) |
@jalcine Oh, TIL about the fact that |
Just an update: Micro.blog supports |
After a quick discussion in https://v2.jacky.wtf/post/789e96e8-2791-40c4-8370-fff06ab10369, I’m going to drop the use of (Originally published at: https://v2.jacky.wtf/post/d59e66a8-2f08-4f25-a7f4-c976cccc2b19) |
I started this section on the wiki to document how pages are different from posts: https://indieweb.org/page#Differences_from_Posts It'd be great to collect more examples of how pages are published there! |
One of the other primary distinguishing factors of pages is that they don't appear in feeds alongside other posts. In my case, I have a flat list of pages at the root of my website. @chrisaldrich described a hierarchy of pages, where some can be contained in other pages. The other approach we could take here is having the client ask the server for the posts contained within a collection, where "normal" posts are in the "default" collection, but pages are in the "page" collection. (Internally you may store these in different database tables, a "type" column in a database, or in different folders on disk.) A benefit of this approach is that it would also handle @grantcodes' example he mentioned of treating "journal" entries as entirely different things as well. |
I like this idea of storing them in a collection that’s usable for the editor to look up. I can do this internally to give a list for editing (it might not show anything to anyone who’s logged out on my site since that’s irrelevant for them tbh). (Originally published at: https://v2.jacky.wtf/post/6181ed74-b87d-4912-a751-5a47548f1777) |
If collections aren't a predefined list, so you could have arbitrary collections like "journal", wouldn't that start overlapping with what categories are used for? It seems like collections would exist kind of in the middle of post types and categories. I'd still like to see us explore whether |
Whether you call them collections or categories doesn't really matter. (Also not every website even has the concept of categories.) If you already have some idea of categories, just imagine making a new category to collect the pages in. Your site would treat that category specially and not show a list of pages in that category. What WordPress calls categories, I call "channels" on my site. That's the top-level feeds like So I don't see this as being something in addition to categories really. It's custom server-side logic whether to show a particularly named category as a feed. |
As for exploring https://microformats.org/wiki/process There's a start to this collection on the IndieWeb wiki already: |
It is common on blogs to have both timestamped blog posts (articles, notes, and photos) as well as standalone pages that are included in the navigation. These pages are not tied to a specific date and are usually stored separately from blog posts. For example, "About", "Contact Me", or "Resume" pages.
WordPress and Micro.blog both have this concept. Timestamped blog posts are called "Posts", and standalone pages are called "Pages".
I'd like to be able to query for these pages from Micropub, create new ones, edit, and delete them.
Micropub proposals #1 and #4 have a "post type" based on Post Type Discovery. There is no "page" post type that I'm aware of (and there would be no way to discovery the type based on its content).
Possible solutions:
q=pages
for querying a list of pages.Prior art: WordPress has long supported pages in their XML-RPC API. I've also recently added support in Micro.blog's flavor of XML-RPC, which I've documented here. WordPress has further consolidated to use a
post_type
of "page" instead of separate API calls for pages.The text was updated successfully, but these errors were encountered: