Files
zhdiary/themes/blog/layouts/index.pug
T
2019-08-12 23:10:07 +07:00

21 lines
466 B
Plaintext

extends layout.pug
block head
if tag
- tagName = tag[0].toUpperCase() + tag.slice(1)
- title= `${tagName} | ${title}`
if paginator && paginator.current > 1
- title = `Page ${paginator.current} | ${title}`
title= title
block content
if tag
h1.tag= tagName
//- if content
//- article.page!= content
if posts
- let now = new Date()
each post in posts
if new Date(post.date) < now
+post(post)
include paginator
else
include includes/empty