Dirichlet conditions in Poincaré–Sobolev inequalities: the sub-homogeneous case