Skip to content

Commit

Permalink
Do not capitalize categories, use facebook in english.
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed Apr 17, 2012
1 parent 329930a commit 9ac9075
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 15 deletions.
4 changes: 2 additions & 2 deletions _includes/categories-list.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="widget categories-list">
<h3 class="widget-title">Blog categories:</h3>
<h3 class="widget-title">Blog Categories</h3>
<ul>
{% for category in site.categories %}
<li><a href="/blog/categories.html#{{ category | first }}">{{ category | first | capitalize }}</a></li>
<li><a href="/blog/categories.html#{{ category | first }}">{{ category | first }}</a></li>
{% endfor %}
</ul>
</div>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="widget">
<h3 class="widget-title">Other Links</h3>
<h3 class="widget-title">Important Links</h3>
<ul>
<li>#elixir-lang on freenode IRC</li>
<li><a href="http://twitter.com/elixirlang" target="_blank">Twitter</a></li>
Expand Down
5 changes: 0 additions & 5 deletions _includes/sidebar.html

This file was deleted.

13 changes: 13 additions & 0 deletions _layouts/blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% include top.html %}

<div id="content">
{{ content }}
</div><!-- #content -->

<div id="sidebar-primary" class="sidebar">
{% include search.html %}
{% include categories-list.html %}
{% include important-links.html %}
</div>

{% include bottom.html %}
7 changes: 6 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@
{{ content }}
</div><!-- #content -->

{% include sidebar.html %}
<div id="sidebar-primary" class="sidebar">
{% include search.html %}
{% include important-links.html %}
{% include categories-list.html %}
</div>

{% include bottom.html %}
6 changes: 3 additions & 3 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
section: blog
layout: default
layout: blog
---

<div class="hfeed">
<div class="hentry post">
<div class="post-content">
<div class="sticky-header">
<h1>{{ page.title }}</h1>
<div class="byline">{{ page.date | date: "%B %d, %Y" }}{% if page.author %} · by {{ page.author}}{% endif %} . in {% for category in page.categories %}<span class="category"><a href="/blog/categories.html#{{category}}">{{ category | capitalize }}</a>{% endfor %}</div>
<div class="byline">{{ page.date | date: "%B %d, %Y" }}{% if page.author %} · by {{ page.author}}{% endif %} . in {% for category in page.categories %}<span class="category"><a href="/blog/categories.html#{{category}}">{{ category }}</a>{% endfor %}</div>
</div><!-- .sticky-header -->

<div class="entry-content">
Expand All @@ -28,7 +28,7 @@ <h1>{{ page.title }}</h1>
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1";
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-send="false" data-layout="button_count" data-width="100" data-show-faces="true"></div>
Expand Down
2 changes: 1 addition & 1 deletion blog/categories.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Posts by category
section: blog
layout: default
layout: blog
---

<div class="hfeed">
Expand Down
4 changes: 2 additions & 2 deletions blog/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: Blog
section: blog
layout: default
layout: blog
---

<div class="hfeed">
{% for post in site.posts %}
<div class="hentry post">
<div class="sticky-header">
<h2 class="entry-title"><a href="{{ post.url }}" title="{{ post.title }}" rel="bookmark">{{ post.title }}</a></h2>
<div class="byline">{{ post.date | date: "%B %d, %Y" }}{% if post.author %} · by {{ post.author}}{% endif %} . in {% for category in post.categories %}<span class="category"><a href="/blog/categories.html#{{category}}">{{ category | capitalize }}</a>{% endfor %}</div>
<div class="byline">{{ post.date | date: "%B %d, %Y" }}{% if post.author %} · by {{ post.author}}{% endif %} . in {% for category in post.categories %}<span class="category"><a href="/blog/categories.html#{{category}}">{{ category }}</a>{% endfor %}</div>
</div><!-- .sticky-header -->

<div class="entry-summary">
Expand Down
Binary file modified css/style.css
Binary file not shown.

0 comments on commit 9ac9075

Please sign in to comment.