content var to template var, add head var