I like to arrange my static files according to post. That means that if I have a post content/posts/foo.md, I would store my static files in static/posts/foo/. Or take content/blog/bar.md . I would store the static files at static/blog/bar/.
In general, the directory which I use per post would be the following:
static/{{.Section}}/{{.File.TranslationBaseName}}
Is there a variable that I can assign Per page which will set the staticDir accordingly ? If not, is there any other way to achieve this ? (In as Hugo figures out the Static Dir automatically based on some configuration)