1
0
Fork 0
dwelling-home/web/templates/article.pug

27 lines
825 B
Plaintext

extends base.pug
block meta_description
meta(name='description' content=description)
block append head
link(href='/assets/css/articles.css' rel='stylesheet')
link(rel='canonical' href='/stuff/article/'+canonical)
block nav
a(href='/') Home
a(href='/stuff') Stuff
a(href='/mindflow') Mindflow
a(href='/about') About
a(href='/guestbook') Guestbook
h1 Articles
block content
:go:func Article(title, description, body string, date time.Time, host, canonical string, r *http.Request)
article
header
h2= title
div.menu
a(href='/stuff#articles') Go back to articles list
- dctz := util.ToClientTimezone(date, r)
time(datetime=dctz.Format("2006-01-02")) #{dctz.Format("02 January 2006")}
| !{body}