def index(self):
        '''
        Index funtion.
        '''
        self.render('index/index.html',
                    userinfo=self.userinfo,
                    catalog_info=MCategory.query_all(by_order=True),
                    link=MLink.query_all(),
                    cfg=CMS_CFG,
                    view=MPost.query_most_pic(20),
                    kwd={}, )
Index funtion.