Files
zhdiary/themes/blog/layouts/index.pug
T
2019-08-12 01:13:27 +07:00

21 lines
463 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
else if posts
- let now = new Date()
each post in posts
if new Date(post.date) < now
+post(post)
include paginator
else
include includes/empty