blog/templates/post.html

56 lines
1.5 KiB
HTML
Raw Normal View History

2016-05-21 09:42:57 +00:00
<html>
{{> head }}
<body>
{{> header }}
<div class="container">
<section>
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
2017-06-03 10:55:30 +00:00
<a href="/" class="back-to-blog" title="Return to all posts"></a>
<h2 class="post-title" itemprop="name headline">
<a class="post-link" href="{{ path }}">{{ title }}</a>
</h2>
2016-05-21 09:42:57 +00:00
<div class="post-meta feather_type">
<span>
<time datetime="{{moment this.date 'YYY-MM-DD' }}">
{{moment this.date 'dddd, Do MMMM YYYY' }}
</time>
</span>
</div>
<div class="post-body" itemprop="articleBody">
{{{ contents }}}
</div>
</article>
</section>
2017-06-03 10:55:30 +00:00
{{> footer }}
</div>
2017-06-07 05:55:21 +00:00
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/styles/zenburn.min.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script id="twitter-wjs" src="https://platform.twitter.com/widgets.js"></script>
<script>
var tweets = document.querySelectorAll(".tweet");
for(var i=0; i<tweets.length; i++) {
var tweet = tweets[i];
var id = tweet.getAttribute("tweetID");
twttr.widgets.createTweet(
id, tweet,
{
conversation : 'none',
cards: 'visible',
linkColor: '#cc0000',
theme: 'light',
align: 'center'
});
}
</script>
2016-05-21 09:42:57 +00:00
</body>
</html>