posativ / acrylamid

(unmaintained) static blog generator in python with incremental rendering ⛺
http://posativ.org/acrylamid/
Other
277 stars 40 forks source link

How to group or place single page web assets #191

Open maphew opened 10 years ago

maphew commented 10 years ago

How to handle "side-car" assets that are relevant to only a particular post/page?

Right now I have embedded media in/files/../page-x divorced from their respective post, e.g. `/Projects/Foo.md'. I'm not comfortable with this arrangement but haven't yet formulated a plan for making it better. One idea is that folders-are-topics, but I don't know if it would work with acrylamid:

# the page
content/Projects/foo

# the text content used to build the page
content/Projects/foo/foo.md
#or perhaps default.txt, index.txt

#assets for the page
content/Projects/foo/some_screenshot.png
content/Projects/foo/a_podcast.mp3
content/Projects/foo/arbitrary_extra.zip

Browser url for the page: www.example.com/Projects/foo