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();

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}
