publish: solve sidebar unshow bug

generated from commit f8d7f4e30a9ecff6f01b9c4f6893e20794ab2a36