modify index.md logic