#NEWLINE# def get_posts_by_tag( name ) : #NEWLINE# #INDENT# posts_with_tag = [ ] #NEWLINE# for post in posts : #NEWLINE# #INDENT# post_tags = [ tag . lower ( ) for tag in post . config . get ( 'tags' , [ ] ) ] #NEWLINE# for tag in post_tags : #NEWLINE# #INDENT# if ( ( tag == name ) and ( post not in posts_with_tag ) ) : #NEWLINE# #INDENT# posts_with_tag . append ( post ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return posts_with_tag