This commit is contained in:
Marcus Noble 2017-06-07 06:55:21 +01:00
parent 2a30a70596
commit 3ef739f477
4 changed files with 24 additions and 25 deletions

2
app.js
View File

@ -46,7 +46,7 @@ Metalsmith(__dirname)
site: { site: {
title: 'Marcus Noble', title: 'Marcus Noble',
description: 'Awesomeness with a side of geek', description: 'Awesomeness with a side of geek',
url: 'https://blog.marcusnoble.co.uk' url: 'https://marcusnoble.co.uk'
} }
})) }))
.use(date()) .use(date())

View File

@ -13,26 +13,3 @@
</div> </div>
</footer> </footer>
<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>

View File

@ -28,7 +28,6 @@
<meta name="msapplication-TileImage" content="/images/favico/ms-icon-144x144.png"> <meta name="msapplication-TileImage" content="/images/favico/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/styles/zenburn.min.css">
<link rel="stylesheet" href="/css/main.css?{{moment date 'YYYYMMDDHHMM'}}"> <link rel="stylesheet" href="/css/main.css?{{moment date 'YYYYMMDDHHMM'}}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ site.url }}/feed.xml"> <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ site.url }}/feed.xml">
</head> </head>

View File

@ -29,5 +29,28 @@
{{> footer }} {{> footer }}
</div> </div>
<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>
</body> </body>
</html> </html>