60 lines
2.2 KiB
Plaintext
60 lines
2.2 KiB
Plaintext
extends template
|
|
|
|
block meta
|
|
meta(charset='utf-8')
|
|
meta(http-equiv='X-UA-Compatible' content='IE=edge')
|
|
meta(name='HandheldFriendly' content='True')
|
|
meta(name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1')
|
|
meta(name='description' content=post.title)
|
|
meta(property='og:type' content='article')
|
|
meta(property='og:url' content=blogUrl(post))
|
|
meta(property='og:title' content=post.title)
|
|
meta(property='og:site_name' content="Garrett's Blog")
|
|
meta(property='og:description' content=post.title)
|
|
meta(property='og:locale' content='en_US')
|
|
// fixme: description, og:image
|
|
meta(property='article:published_time' content=post.date.toISOString())
|
|
meta(property='article:modified_time' content=post.date.toISOString())
|
|
meta(property='article:author' content='Garrett Mills')
|
|
each tag in post.tags
|
|
meta(property='article:tag' content=tag)
|
|
meta(name='twitter:card' content='summary')
|
|
|
|
// fixme: twitter:image
|
|
|
|
block append style
|
|
link(rel='stylesheet' href=asset('highlight/styles/' + themeRecord.highlightTheme + '.min.css'))
|
|
|
|
block append script
|
|
script(src=asset('highlight/highlight.min.js'))
|
|
script.
|
|
hljs.highlightAll();
|
|
if chorusUrl && chorusThread
|
|
script(src=asset('chorus.js'))
|
|
script.
|
|
Chorus?.init('#chorus-container')
|
|
|
|
block blog_content
|
|
h2.post-title #{post.title}
|
|
p.post-byline by Garrett Mills on #{blogDate(post.date)}
|
|
.post-tags
|
|
ul
|
|
each tag in post.tags
|
|
li
|
|
a.button(href=named('blog')+'/tag/'+tag) ##{tag}
|
|
|
|
.post-content !{renderedPost}
|
|
|
|
if chorusUrl && chorusThread
|
|
.section-border
|
|
.section-border-inner-1
|
|
.section-border-inner-2
|
|
|
|
.comments-container
|
|
h1 Comments
|
|
p Thanks for reading! I'd love to hear your thoughts and questions.
|
|
p My blog uses an email-based comments system: <a href="#">Submit a Comment</a>
|
|
p You can also <a href="mailto:shout@garrettmills.dev">email me</a> directly.
|
|
hr
|
|
div.comments#chorus-container(data-chorus-url=chorusUrl data-chorus-thread=chorusThread)
|