Skip to content

Commit

Permalink
Configures New Blog
Browse files Browse the repository at this point in the history
  • Loading branch information
rsertelon committed Feb 2, 2014
1 parent 6baeac0 commit c4dab5a
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1 +1,2 @@
_site
_site
*.swp
4 changes: 3 additions & 1 deletion _config.yml
@@ -1,3 +1,5 @@
name: Your New Jekyll Site
name: Blog de Romain Sertelon
markdown: redcarpet
pygments: true
permalink: /:title.html
encoding: UTF-8
11 changes: 5 additions & 6 deletions _layouts/default.html
Expand Up @@ -6,6 +6,8 @@
<title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width">

<link rel="alternate" type="application/atom+xml" href="/atom.xml" title="Romain Sertelon's Blog">

<!-- syntax highlighting CSS -->
<link rel="stylesheet" href="/css/syntax.css">

Expand All @@ -26,18 +28,15 @@ <h1 class="title"><a href="/">{{ site.name }}</a></h1>
<div class="footer">
<div class="contact">
<p>
Your Name<br />
What You Are<br />
you@example.com
Romain Sertelon
</p>
</div>
<div class="contact">
<p>
<a href="https://github.com/yourusername">github.com/yourusername</a><br />
<a href="https://twitter.com/yourusername">twitter.com/yourusername</a><br />
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a>
</p>
</div>
</div>
</div>
</div>

</body>
Expand Down
17 changes: 17 additions & 0 deletions _layouts/post.html
Expand Up @@ -7,3 +7,20 @@ <h2>{{ page.title }}</h2>
<div class="post">
{{ content }}
</div>

<!-- Twitter Button -->
<a href="https://twitter.com/share" class="twitter-share-button" data-lang="en">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

<script type="text/javascript">
/* <![CDATA[ */
(function() {
var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'https://api.flattr.com/js/0.6/load.js?mode=auto';
t.parentNode.insertBefore(s, t);
})();
/* ]]> */
</script>
<a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="https://romain.sertelon.fr/"></a>
28 changes: 28 additions & 0 deletions atom.xml
@@ -0,0 +1,28 @@
---
layout: nil
title : Atom Feed
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

<title>{{ site.title }}</title>
<link href="{{ site.production_url }}/atom.xml" rel="self"/>
<link href="{{ site.production_url }}"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.production_url }}</id>
<author>
<name>{{ site.author.name }}</name>
<email>{{ site.author.email }}</email>
</author>

{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>
<link href="{{ site.production_url }}{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.production_url }}{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}

</feed>
4 changes: 2 additions & 2 deletions index.html
@@ -1,6 +1,6 @@
---
layout: default
title: Your New Jekyll Site
title: Blog de Romain Sertelon
---

<div id="home">
Expand All @@ -10,4 +10,4 @@ <h1>Blog Posts</h1>
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
</div>

0 comments on commit c4dab5a

Please sign in to comment.