Skip to content

Commit 02b9df8

Browse files
committed
Improved layouts of post and default, add _includes/footer.html, add Disqus comments, set atom.xml, display excerpt posts & Read more
1 parent f339b58 commit 02b9df8

File tree

8 files changed

+56
-296
lines changed

8 files changed

+56
-296
lines changed

README.md

-4
This file was deleted.

_includes/footer.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<footer>
2+
<div class="row">
3+
<div class="span10">
4+
<p class="Copyright 2011-2012">&copy; 2012 GitWatcher</p>
5+
</div>
6+
<!-- .span2 -->
7+
<!-- %a.pull-right{:href => "http://flow.mixpanel.com/f/partner"} -->
8+
<!-- %img{:alt => "Real Time Web Analytics", :src => "http://mixpanel.com/site_media/images/partner/badge_blue.png"} -->
9+
</div>
10+
</footer>

_layouts/default.html

+5-19
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,6 @@
9090

9191
<!-- Main content area -->
9292

93-
<!-- div class="container main-content-container">
94-
<div class="row">
95-
<div class="span2">
96-
<img id="logo" src="/images/logo.png">
97-
</div>
98-
99-
<div class="span10 main-content">
100-
{{ content }}
101-
</div>
102-
</div>
103-
</div -->
104-
10593
<div class="container">
10694
<div class="content">
10795
<header class="page-header">
@@ -113,27 +101,25 @@ <h1>{{ site.title }}</h1>
113101
</div>
114102
<nav class="span3">
115103
<h3>Recent Posts</h3>
104+
<hr />
116105
<div id="posts">
117106
{% for post in site.posts limit:10%}
118107
<p><a href="/blog{{ post.url }}">{{ post.title }}</a></p>
119108
{% endfor %}
109+
<hr>
110+
<p>powered by <a href="https://github.com/mojombo/jekyll">jekyll</a></p>
120111
</div>
121112
</nav>
122113
</div>
123114
</div>
124-
<footer>
125-
<p>powered by <a href="https://github.com/mojombo/jekyll">jekyll</a></p>
126-
</footer>
115+
<hr />
116+
{% include footer.html %}
127117
</div>
128118

129119
</div>
130120

131121
<!-- End Main content area -->
132122

133-
{% if site.github %}
134-
<a href="http://github.com/{{ site.github.username }}"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" /></a>
135-
{% endif %}
136-
137123
</body>
138124
</html>
139125

_layouts/post.html

+29-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: default
3+
comments: true
34
---
45
<article>
56
<header>
@@ -9,17 +10,40 @@ <h2>
910
<h5><time>{{ page.date | date: '%B' }} {{ page.date | date: '%e' }}, {{ page.date | date: '%Y' }}</time></h5>
1011
</header>
1112

12-
{{ content }}
13+
<p /><br /><p />{{ content }}
1314

15+
<div class="hero-unit">
1416
<nav id="related">
1517
<h3>Related Posts</h3>
1618
<ul class="posts">
1719
{% for post in site.related_posts limit:5 %}
18-
<li><span>{{ post.date | date_to_string }}</span> - <a href="/blog{{ post.url }}">{{ post.title }}</a></li>
20+
<p><li><span>{{ post.date | date_to_string }}</span> - <a href="/blog{{ post.url }}">{{ post.title }}</a></li></p>
1921
{% endfor %}
2022
</ul>
2123
</nav>
24+
</div>
2225

26+
{% if page.comments %}
27+
<div id="disqus_thread"></div>
28+
<script type="text/javascript">
29+
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
30+
var disqus_shortname = 'gitwatcher'; // required: replace example with your forum shortname
31+
/*var disqus_developer = 1; // This turns developer mode on
32+
// Make sure you remove this before you push this
33+
// to your live site.
34+
35+
/* * * DON'T EDIT BELOW THIS LINE * * */
36+
(function() {
37+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
38+
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
39+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
40+
})();
41+
</script>
42+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
43+
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
44+
{% endif %}
45+
46+
<!--
2347
{% if site.disqus %}
2448
<div id="comments">
2549
<h2>Comments</h2>
@@ -35,5 +59,7 @@ <h2>Comments</h2>
3559
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript={{ site.disqus.id }}">comments powered by Disqus.</a></noscript>
3660
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
3761
</div>
62+
{% endif %}
63+
-->
64+
3865
</article>
39-
{% endif %}

atom.xml

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ layout: nil
44
<?xml version="1.0" encoding="utf-8"?>
55
<feed xmlns="http://www.w3.org/2005/Atom">
66

7-
<title>BLOG_NAME</title>
8-
<link href="YOUR_URL/atom.xml" rel="self"/>
9-
<link href="YOUR_URL"/>
7+
<title>GitWatcher Blog</title>
8+
<link href="http://gitwatcher.com/blog/atom.xml" rel="self"/>
9+
<link href="http://gitwatcher.com/blog"/>
1010
<updated>{{ site.time | date_to_xmlschema }}</updated>
11-
<id>BLOG_URL</id>
11+
<id>http://gitwatcher.com/blog</id>
1212
<author>
13-
<name>BLOG_NAME</name>
13+
<name>Luca G. Soave</name>
1414
</author>
1515

1616
{% for post in site.posts %}
1717
<entry>
1818
<title>{{ post.title }}</title>
19-
<link href="YOUR_URL{{ post.url }}"/>
19+
<link href="http://gitwatcher.com/blog{{ post.url }}"/>
2020
<updated>{{ post.date | date_to_xmlschema }}</updated>
2121
<id>BLOG_URL{{ post.id }}</id>
2222
<content type="html">{{ post.content | xml_escape }}</content>
2323
</entry>
2424
{% endfor %}
2525

26-
</feed>
26+
</feed>

css.old/screen.css

-197
This file was deleted.

0 commit comments

Comments
 (0)