Topological properties of a class of Su-Schrieffer-Heeger variants