Browse Source

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

main
Nate Lawson 3 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 -%}
<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>
<time datetime="{{ resource.meta.created.strftime('%Y-%m-%d') }}">
Posted: {{ resource.meta.created.strftime('%a, %d %b %Y') }}
</time>

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


+ 0
- 12
layout/listing.j2 View File

@@ -3,21 +3,9 @@
{% block main %}
{% 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] %}
{{ render_link(res) }}
{% endfor %}
</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 %}

+ 0
- 3
layout/macros.j2 View File

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



Loading…
Cancel
Save