add second page

This commit is contained in:
patarapolw committed 2019-08-12 23:10:07 +07:00
1 parent cc517b7333
commit c8e44c3143
11 files changed
+138 -5

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
mixin post(post)
.card.p-2.post(class=`${post.teaser ? 'teaser' : 'full'}`)
.card.p-2.mb-3.post(class=`${post.teaser ? 'teaser' : 'full'}`)
.post-meta.mb-3
.float-right
+date(post.date)
+3 -3
View File
@@ -9,9 +9,9 @@ block head
block content
if tag
h1.tag= tagName
if content
article.page!= content
else if posts
//- if content
//- article.page!= content
if posts
- let now = new Date()
each post in posts
if new Date(post.date) < now
+5 -1
View File
@@ -3,7 +3,11 @@ head
block head
title= title
meta(content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1.0, maximum-scale=1" name="viewport")
link(rel="shortcut icon" href=`${cogear.baseUrl}favicon.png` type="image/png")
//- link(rel="shortcut icon" href=`${cogear.baseUrl}favicon.png` type="image/png")
link(rel="apple-touch-icon" sizes="180x180" href=`${cogear.baseUrl}apple-touch-icon.png`)
link(rel="icon" type="image/png" sizes="32x32" href=`${cogear.baseUrl}favicon-32x32.png`)
link(rel="icon" type="image/png" sizes="16x16" href=`${cogear.baseUrl}favicon-16x16.png`)
link(rel="manifest" href=`${cogear.baseUrl}site.manifest`)
link(rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' integrity='sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T' crossorigin='anonymous')
body
nav.navbar.navbar-dark.bg-success