fix 'Build Warning: Layout 'nil' requested in ....' which occurs when perfom 'rake genrate'
fix wrong pagination url problem
fix datetime not showing problem