Correctly set @asset_dir based on if we're displaying a folder or an article.