#NEWLINE# def get_layout( self , meta ) : #NEWLINE# #INDENT# "Get layout config in meta, default is `page'" #NEWLINE# if ( 'layout' in meta ) : #NEWLINE# #INDENT# if ( meta [ 'layout' ] == 'post' ) : #NEWLINE# #INDENT# warn_msg = "{0}: layout `post' is deprecated, use `page'" . format ( self . _src_file ) #NEWLINE# if is_py2 : #NEWLINE# #INDENT# warn_msg = warn_msg . encode ( 'utf-8' ) #NEWLINE# #UNINDENT# warnings . warn ( warn_msg , DeprecationWarning ) #NEWLINE# layout = 'page' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# layout = meta [ 'layout' ] #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# layout = 'page' #NEWLINE# #UNINDENT# return layout