sync minisite code from vanilla2 minisite code

Signed-off-by: TomWu <phperwuhan@gmail.com>