#{extends 'Web/layout.html'/}
#{if tag}

&{'web.tag'}: ${tag}

#{/if} #{list news.take(1), as:'p'}
${p.date().format()} #{if p.path == page.path}

${p.title}

#{/if} #{else}

${p.title}

#{/else} ${p.contentParts().content.raw()} #{if p.metadata.tags}
&{'web.tags'}: #{list p.metadata.tags.split(',\\s*'), as:'t'} ${t} #{/list}
#{/if}

#{/list} #{list news.drop(1), as:'p'}

${p.date().format()}${p.title}

#{/list} #{ifnot news} &{'web.news.notFound'} #{/ifnot} #{if total > news.size()}
&{'web.news.notShown', total - news.size()} #{/if}
#{if tagFreq}

&{'web.tags'}

#{list tagFreq, as:'e'} ${e.key} #{/list}

#{/if} #{secure.check 'cms'}

&{'web.admin.addNews'} #{/secure.check}