-
Notifications
You must be signed in to change notification settings - Fork 11
/
layout.jade
60 lines (52 loc) · 2.13 KB
/
layout.jade
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
doctype html
head
title #{title}
link(rel='stylesheet', href='http://fonts.googleapis.com/css?family=PT+Sans', type='text/css')
link(rel='stylesheet', href=base_url + '/main.css', type='text/css')
link(rel='alternate', type='application/rss+xml', title=title, href=base_url + '/rss.xml')
body
div.topbar
ul
li
a(href='http://github.com/guyht/glog') Glog
li
a(href='http://twitter.com/guyht') @guyht
div.blog_title
<a href='!{base_url}/'>!{title}</a>
- each article in articles
div.article
div.header
div.title
<a href='!{base_url}/!{article.url}/'>!{article.title}</a>
div.date
-if (show_author)
!{article.author} -
!{article.date_str}
div.body !{article.body}
- if (typeof single !== 'undefined' && single && disqus_id !== -1)
script(type='text/javascript').
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '!{disqus_id}'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
div#disqus_thread
- if ((typeof single === 'undefined' || !single) && page_num !== -1)
div.next_page
<a href='!{base_url}/page/#{page_num + 1}'>Next Page</a>
// Please do not remove
div.footer
a(href='http://github.com/guyht/glog') Powered by Glog
- if (typeof analytics_code !== 'undefined' && analytics_code !== null)
script(type='text/javascript').
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '!{analytics_code}']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();