Fix reference error when generating static sites.

Simple typo fix in `render_function`.