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

26 lines
820 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
time(datetime=util.ToClientTimezone(date, r).Format("2006-01-02")) #{util.ToClientTimezone(date, r).Format("02 January 2006")}
| !{body}