Skip to content

Commit

Permalink
Calepin theme: Add canonical <link> and fix URLs in tag page.
Browse files Browse the repository at this point in the history
  • Loading branch information
jokull committed Dec 5, 2011
1 parent 36e98d0 commit 3b62fb9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions calepin/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

{% block title %}{{ article.title }} - {{ super() }}{%endblock%}

{% block head -%}
{% if article.canonical %}
<link rel="canonical" href="{{ article.canonical }}">
{%- endif %}
{% endblock %}

{% block content %}

<article class="hentry">
Expand Down
1 change: 1 addition & 0 deletions calepin/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<link rel="stylesheet" href="{{ SITEURL }}/theme/skeleton.css">
<link rel="stylesheet" href="{{ SITEURL }}/theme/styles.css">
<link rel="stylesheet" href="{{ SITEURL }}/theme/pygment.css">
{%- block head %}{% endblock %}

<script src="http://cachedcommons.org/cache/modernizr/1.5.0/javascripts/modernizr-min.js"></script>

Expand Down
4 changes: 2 additions & 2 deletions calepin/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
{% for article in articles_page.object_list %}
<li>
<abbr class="published" title="{{ article.date.isoformat() }}">
<a href="{{ article.url }}">{{ article.locale_date }}</a>
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.locale_date }}</a>
</abbr>
<h2><a href="{{ article.url }}">{{ article.title }}</a></h2>
<h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit 3b62fb9

Please sign in to comment.