aaronpk / p3k

This is a repository for filing issues against the software the runs my website. The source code is not public, but various components are.
https://aaronparecki.com/
MIT License
14 stars 0 forks source link

Permalinks for collections of posts #8

Closed aaronpk closed 10 years ago

aaronpk commented 10 years ago

I just had the situation where I wanted to share 3 specific posts from my site with someone.

I imagine something like putting a list of short slugs in the query string, like:

http://aaronparecki.com/collection?posts=m4T7XPQ,m4T8NDw,m4T9NDc

It would then render the three posts in the same layout as my tag pages. Need to figure out how to include external posts from other people in that too then.

aaronpk commented 10 years ago

Could instead create a new post type, "collection," where the collection post itself contains links to multiple URLs (local or external) to render.

aaronpk commented 10 years ago

Depends on #15

aaronpk commented 10 years ago

Alternately could create a new "post type" called "collection" which contains the URLs to multiple posts in the file. These posts be stored just like notes or articles, so they would have nice URLs like /collections/2014/02/01/1 and would also have nice shortlinks that way. (e.g. aaron.pk/c4Un1)

If these are new posts themselves, then I could just as easily add annotations between the posts, kind of like Storify!

I imagine the source file could look something like this:

A couple nights waking up in the middle of the night:

http://aaronparecki.com/metrics/2014/02/22/083448/

http://aaronparecki.com/metrics/2014/02/20/080216/

http://aaronparecki.com/metrics/2014/02/17/065235/

A URL on its own line signals the parser to go fetch the h-entry from that URL for remote URLs, or render the post if it's a local URL.

aaronpk commented 10 years ago

This is now live! http://aaronparecki.com/collections/2014/08/14/1/