Browse Source

Remove prev/next links & post date. No one cares when posted.

main
Nate Lawson 7 years ago
parent
commit
dbed29440f
3 changed files with 0 additions and 42 deletions
  1. +0
    -27
      layout/blog.j2
  2. +0
    -12
      layout/listing.j2
  3. +0
    -3
      layout/macros.j2

+ 0
- 27
layout/blog.j2 View File

@@ -2,34 +2,8 @@


{% block main -%} {% block main -%}
<article class="post"> <article class="post">
<nav class="post_nav">
<a class="backlink" href="/">Back to list</a>
<a class="next{{' disabled' if not resource.next_by_time }}"
title="{{ resource.next_by_time.meta.title }}"
{% if resource.next_by_time %}
href="{{ content_url(resource.next_by_time.url) }}"{% endif %}>
Previous</a>


<a class="prev{{' disabled' if not resource.prev_by_time }}"
title="{{ resource.prev_by_time.meta.title }}"
{% if resource.prev_by_time %}
href="{{ content_url(resource.prev_by_time.url) }}"{% endif %}>
Next</a>

<br>
<div id="twitter_share">
<a href="https://twitter.com/share"
class="twitter-share-button"
data-count="vertical"
data-via="{{ tweet_via }}">Tweet</a>
<script type="text/javascript"
src="https://platform.twitter.com/widgets.js"></script>
</div>
</nav>
<h1>{{ resource.meta.title }}</h1> <h1>{{ resource.meta.title }}</h1>
<time datetime="{{ resource.meta.created.strftime('%Y-%m-%d') }}">
Posted: {{ resource.meta.created.strftime('%a, %d %b %Y') }}
</time>


{% if resource.meta.tags %} {% if resource.meta.tags %}
<ul class="tags clear"> <ul class="tags clear">
@@ -43,7 +17,6 @@
</ul> </ul>
{% endif %} {% endif %}
<div class="clear"/> <div class="clear"/>
<br/>
{% filter markdown|typogrify -%} {% filter markdown|typogrify -%}
{% mark post -%} {% mark post -%}
{% block post -%}{%- endblock %} {% block post -%}{%- endblock %}


+ 0
- 12
layout/listing.j2 View File

@@ -3,21 +3,9 @@
{% block main %} {% block main %}
{% block page_title %}<h1 class="title">{{ resource.meta.title }}</h1>{% endblock %} {% block page_title %}<h1 class="title">{{ resource.meta.title }}</h1>{% endblock %}


<br/>
<br/>
<h2>Next Baysec Event</h2>
<h2> {% for res in resource.node.walk_resources_sorted_by_time()[0:1] %} <h2> {% for res in resource.node.walk_resources_sorted_by_time()[0:1] %}
{{ render_link(res) }} {{ render_link(res) }}
{% endfor %} {% endfor %}
</h2> </h2>


<br/>
<h2>Previous Baysec Events</h2>
<ul class="posts">
{% for res in resource.node.walk_resources_sorted_by_time()[1:] %}
<li>
{{ render_link(res) }}
</li>
{% endfor %}
</ul>
{% endblock %} {% endblock %}

+ 0
- 3
layout/macros.j2 View File

@@ -9,9 +9,6 @@
<h3><a href="{{ content_url(res.url) }}">{{ res.meta.title }}</a></h3> <h3><a href="{{ content_url(res.url) }}">{{ res.meta.title }}</a></h3>
<a href="{{ content_url(res.url) }}">{{ post.image|markdown|typogrify }}</a> <a href="{{ content_url(res.url) }}">{{ post.image|markdown|typogrify }}</a>
{{ post.excerpt|markdown|typogrify }} {{ post.excerpt|markdown|typogrify }}
<time datetime="{{ res.meta.created.strftime('%Y-%m-%d') }}">
Posted: {{ res.meta.created.strftime('%a, %d %b %Y') }}
</time>
</article> </article>
{% endmacro %} {% endmacro %}




Loading…
Cancel
Save