Geometric numerical integrators for Hunter–Saxton-like equations