Skip to content

Commit

Permalink
Author data for posts, hidden. For instapaper.
Browse files Browse the repository at this point in the history
  • Loading branch information
jokull committed Jan 23, 2012
1 parent c50dd01 commit 6648d2e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
1 change: 1 addition & 0 deletions calepin/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ article .entry-content li { font-size: 12pt; line-height: 20pt; }
article .metadata { font-size: 11px; color: #888; }
article .metadata p { margin-bottom: 0; }
article .metadata a { color: #666; }
article .metadata address { display: none; }

sup { vertical-align: .2em; font-size: 80%; margin: -2px 0 0 2px; }

Expand Down
32 changes: 15 additions & 17 deletions calepin/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,23 @@ <h2 class="instapaper_title">{{ article.title }}</h2>

<div class="metadata">

{#
{% if article.author %}
<address class="vcard author">
By <a class="url fn" href="{{ SITEURL }}/author/{{ article.author }}.html">{{ article.author }}</a>
</address>
{% endif %}
#}
{% if article.author %}
<address class="vcard author">
By <a class="url fn" href="{{ SITEURL }}/author/{{ article.author }}.html">{{ article.author }}</a>
</address>
{% endif %}

{% if article.category and article.category != "misc" %}
<p>
Posted in <em><a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></em>
</p>
{% endif %}
{% if article.category and article.category != "misc" %}
<p>
Posted in <em><a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></em>
</p>
{% endif %}

{% if article.tags %}
<p>
Tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a> {% endfor %}
</p>
{% endif %}
{% if article.tags %}
<p>
Tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a> {% endfor %}
</p>
{% endif %}

</div>

Expand Down

0 comments on commit 6648d2e

Please sign in to comment.