diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index c56b4f8..6096d25 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -1,10 +1,16 @@ + {% if title %}{{ title }} - {% endif %}{{ metadata.title }} + {{ content | safe }} - +
+ diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 8e49fb4..da514ff 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -3,13 +3,15 @@ layout: layouts/base.njk ---

{{ title }}

-
by - {{ author.name or metadata.author.name }} -
- - {% if series %} - - {% endif %} +
+
by + {{ author.name or metadata.author.name }} +
+ + {% if series %} + + {% endif %} +
{{ content | safe }}
{% if collections.posts %} @@ -17,14 +19,15 @@ layout: layouts/base.njk {% set nextPost = collections.posts | getNextCollectionItem %} {% if nextPost or previousPost %} {% endif %} {% endif %} {% if series %} +
{% set seriesName = series.name %} {% endif %} diff --git a/_includes/post_link.njk b/_includes/post_link.njk index db01fb0..58741f9 100644 --- a/_includes/post_link.njk +++ b/_includes/post_link.njk @@ -1,4 +1,8 @@ -{{ post.data.title }} - -{% if post.data.description %}

{{ post.data.description }}

{% endif %} +
  • + {{ post.data.title }} + {% if post.data.description %}

    {{ post.data.description }}

    + {% elseif post.data.series %}

    - {{ post.data.series.name }}

    + {% endif %} +

    +
  • diff --git a/_includes/post_list.njk b/_includes/post_list.njk index 646b92f..c5c85d2 100644 --- a/_includes/post_list.njk +++ b/_includes/post_list.njk @@ -1,6 +1,6 @@ -
      -{%- for post in collections.posts %} -
    1. {% include "post_link.njk" %}
    2. +
        +{%- for post in collections.posts | reverse %} + {% include "post_link.njk" %} {%- endfor %}
      diff --git a/_includes/series_list.njk b/_includes/series_list.njk index a6a7eea..07ebd2d 100644 --- a/_includes/series_list.njk +++ b/_includes/series_list.njk @@ -1,6 +1,6 @@

      {{ seriesName }}

        {%- for post in collections.posts | seriesPosts(seriesName) %} -
      1. {% include "post_link.njk" %}
      2. + {% include "post_link.njk" %} {%- endfor %}
      diff --git a/_includes/site_nav.njk b/_includes/site_nav.njk index 11dd5d4..3b88f0b 100644 --- a/_includes/site_nav.njk +++ b/_includes/site_nav.njk @@ -1,5 +1,5 @@ -