The court, in rendering the decree of divorce, may assign the homestead or such part thereof as to the court may seem just, to the innocent party, either absolutely or for a limited period, according to the facts in the case and in consonance with the law relating to homesteads.