Add ID to .site-inner

The snippet below adds an ID to .site-inner when using a theme, based on the Genesis Framework:

add_filter( 'genesis_attr_site-inner', function ( $attributes ) {
	if ( is_singular( 'post' ) ) {
		$attributes['id'] = 'site-inner';
	}

	return $attributes;
} );