Browse Source

more minor spacing adjustments, and add next/previous blog post..

main
John-Mark Gurney 3 years ago
parent
commit
781bfd9421
2 changed files with 30 additions and 2 deletions
  1. +12
    -1
      content/media/css/custom.css
  2. +18
    -1
      layout/blog.j2

+ 12
- 1
content/media/css/custom.css View File

@@ -2,6 +2,15 @@
font-size: 80%;
}

.prevnext {
text-align: center;
}

p.posted {
margin-top: .5em;
margin-bottom: .5em;
}

a.headerlink {
/* give some space to para links */
margin-left: .2em;
@@ -14,7 +23,9 @@ a.headerlink {
}

ul.tags {
list-style-type: none;
list-style-type: none;
margin-top: .2em;
margin-bottom: .2em;
}

ul.tags li {


+ 18
- 1
layout/blog.j2 View File

@@ -8,7 +8,7 @@

<h1><a class="no-tufte-underline" href="{{ resource.url }}">{{ resource.meta.title }}</a></h1>

<p>Posted: {{ resource.meta.created.strftime('%B %e, %Y') }} at {{ resource.meta.time }}</p>
<p class="posted">Posted: {{ resource.meta.created.strftime('%B %e, %Y') }} at {{ resource.meta.time }}</p>

{% if resource.meta.tags %}
<ul class="tags clear">
@@ -29,5 +29,22 @@
</section>
</article>
{%- endmark %}
<section>
<p class='prevnext'>
<a class="small 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>
|
<a class="small 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>
</div>
</section>

{%- endblock %}

Loading…
Cancel
Save