Skip to content

Commit

Permalink
[NOTMYIDEA-CMS]Move article infos into a separate template like the d…
Browse files Browse the repository at this point in the history
…efault theme
  • Loading branch information
Lothiraldan committed Apr 8, 2011
1 parent 3e04e09 commit 69c1767
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 39 deletions.
14 changes: 1 addition & 13 deletions notmyidea-cms/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,7 @@
rel="bookmark" title="Permalink to {{ article.title }}">{{ article.title
}}</a></h1> {% include 'twitter.html' %} </header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="{{ article.date.isoformat() }}">
{{ article.date.strftime('%a %d %B %Y') }}
</abbr>
{% if article.author %}
<address class="vcard author">
By <a class="url fn" href="#">{{ article.author }}</a>
</address>
{% endif %}
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>.
{% include 'taglist.html' %}
{% include 'translations.html' %}
</footer><!-- /.post-info -->
{% include 'article_infos.html' %}<!-- /.post-info -->
{{ article.content }}
</div><!-- /.entry-content -->
{% if DISQUS_SITENAME %}
Expand Down
14 changes: 14 additions & 0 deletions notmyidea-cms/templates/article_infos.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<footer class="post-info">
<abbr class="published" title="{{ article.date.isoformat() }}">
{{ article.locale_date }}
</abbr>

{% if article.author %}
<address class="vcard author">
By <a class="url fn" href="#">{{ article.author }}</a>
</address>
{% endif %}
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>. {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>{% endif %}</p>
{% include 'taglist.html' %}
{% include 'translations.html' %}
</footer><!-- /.post-info -->
28 changes: 2 additions & 26 deletions notmyidea-cms/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,7 @@
<aside id="featured"><article>
<h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url
}}">{{ article.title }}</a></h1>
<footer class="post-info">
<abbr class="published" title="{{ article.date.isoformat() }}">
{{ article.date.strftime('%a %d %B %Y') }}
</abbr>

{% if article.author %}
<address class="vcard author">
By <a class="url fn" href="#">{{ article.author }}</a>
</address>
{% endif %}
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>. {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>{% endif %}</p>
{% include 'taglist.html' %}
{% include 'translations.html' %}
</footer><!-- /.post-info -->
{% include 'article_infos.html' %}<!-- /.post-info -->
{{ article.content }}
</article></aside><!-- /#featured -->
{% if loop.length > 1 %}
Expand All @@ -36,18 +23,7 @@ <h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to
</header>

<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="{{ article.date.isoformat() }}">
{{ article.date.strftime('%a %d %B %Y') }}
</abbr>

<address class="vcard author">
By <a class="url fn" href="#">{{ article.author }}</a>
</address>
<p> In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></p>
{% include 'taglist.html' %}
<p>{% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">pdf</a>{% endif %}</p>
</footer><!-- /.post-info -->
{% include 'article_infos.html' %}<!-- /.post-info -->
{{ article.summary }}
<a class="readmore" href="{{ SITEURL }}/{{ article.url }}">read more</a>
</div><!-- /.entry-content -->
Expand Down

0 comments on commit 69c1767

Please sign in to comment.