Size-controlled synthesis of CdS nanoparticles confined on covalent triazine-based frameworks for durable photocatalytic hydrogen evolution under visible light.