tylerbutler / engineer

A static website generator written in Python.
http://engineer.readthedocs.org/
MIT License
25 stars 3 forks source link

Smart, simple cross-linking of posts #9

Closed tylerbutler closed 12 years ago

tylerbutler commented 12 years ago

If you want to link between posts today, you need to put the full URL of the post in your post's markdown. What if there was a smart syntax you could use that would look up posts and link them automatically, even if their URLs changed?

tylerbutler commented 12 years ago

Idea: treat a post input file as a Jinja template first, and use a function to fill in the URL. Would require preprocessing all of the posts to determine their URLs first, or flagging posts that link to as-yet-unprocessed posts for post-processing.

tylerbutler commented 12 years ago

This feels like overkill, plus I'm not sure it would actually add any value. In order for this to work engineer would need to have some unchanging identifier for posts that persisted between builds, and that just isn't a direction I want to go in.