mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
allow adding custom scripts & styles to layout
This commit is contained in:
parent
6616f77390
commit
5b9125ad5e
3 changed files with 15 additions and 2 deletions
|
|
@ -2,6 +2,8 @@
|
|||
"globals": {
|
||||
"site": "samhuri.net",
|
||||
"author": "Sami Samhuri",
|
||||
"url": "http://samhuri.net"
|
||||
"url": "http://samhuri.net",
|
||||
"styles": [],
|
||||
"scripts": []
|
||||
}
|
||||
}
|
||||
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
<link rel="icon" type="image/gif" href="/images/s.gif">
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
<link rel="alternate" type="application/rss+xml" href="http://samhuri.net/sjs.rss" title="samhuri.net">
|
||||
<% for (var i in styles) { %>
|
||||
<link rel="stylesheet" href="/css/<%= styles[i] %>.css">
|
||||
<% } %>
|
||||
<link rel="alternate" type="application/rss+xml" href="http://samhuri.net/feed.xml" title="samhuri.net">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
@ -33,6 +36,10 @@
|
|||
<p><a href="mailto:sami@samhuri.net">sami@samhuri.net</a></p>
|
||||
</footer>
|
||||
|
||||
<% for (var i in scripts) { %>
|
||||
<script src="/js/<%= scripts[i] %>.js"></script>
|
||||
<% } %>
|
||||
|
||||
<script>
|
||||
var _gaq = _gaq || []
|
||||
_gaq.push( ['_setAccount', 'UA-214054-5']
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<!-- TODO: move to _data.json somehow -->
|
||||
<link rel="stylesheet" href="/css/projects.css">
|
||||
|
||||
<a href="https://github.com/samsonjs/<%= title %>"><img id="forkme" src="/images/forkme@2x.png" width="140" height="140" alt="Fork me on GitHub"></a>
|
||||
|
|
@ -31,10 +32,13 @@
|
|||
</div>
|
||||
<br class="clear">
|
||||
</div>
|
||||
|
||||
<!--[if lt IE 8]>
|
||||
<script src="http://d1eqzjbvoh1rux.cloudfront.net/json2.min.js"></script>
|
||||
<script src="/js/storage-polyfill.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- TODO: move to _data.json somehow -->
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"></script>
|
||||
<script src="/js/gitter.js"></script>
|
||||
<script src="/js/store.js"></script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue