diff --git a/_includes/post-item.html b/_includes/post-item.html new file mode 100644 index 0000000..cdc58ce --- /dev/null +++ b/_includes/post-item.html @@ -0,0 +1,46 @@ +
  • +
    +
    + 🗓️ {% assign date_format = site.minima.date_format | default: "%b %-d, + %Y" %} {{ post.date | date: date_format }} + + • + ️#️⃣ + {{post.category | capitalize }} +
    +
    +

    + {{ post.title | escape }} +

    +
    +
    + {{post.description}} +
    +
    +
    + {% if post.image %} + {{ post.description | escape }} + {% else %} + {{ post.description | escape }} + + {% endif %} {{ post.excerpt }} +
    +
    + Continue Reading +
    +
  • diff --git a/_layouts/home.html b/_layouts/home.html index 69f60ad..2669a34 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -5,60 +5,7 @@ layout: default
    {% include message.html %} {% if site.posts.size > 0 %} {% endif %}
    diff --git a/entertaining.html b/entertaining.html index 2888371..a8963bc 100644 --- a/entertaining.html +++ b/entertaining.html @@ -9,46 +9,7 @@ permalink: /entertaining/
    {% if site.categories.entertaining.size > 0 %} {% else %} diff --git a/motivational.html b/motivational.html index f126c22..f557e18 100644 --- a/motivational.html +++ b/motivational.html @@ -9,46 +9,7 @@ permalink: /motivational/
    {% if site.categories.motivational.size > 0 %} {% else %} diff --git a/personal.html b/personal.html index 244c238..710a47b 100644 --- a/personal.html +++ b/personal.html @@ -9,47 +9,8 @@ permalink: /personal/
    {% if site.categories.personal.size > 0 %}
      - {% for post in site.categories.personal %} -
    • -
      - -
      - {{post.description}} -
      -
      -
      - {% if post.image %} - {{ post.description | escape }} - {% else %} - {{ post.description | escape }} - - {% endif %} {{ post.excerpt }} -
      - -
    • - {% endfor %} + {% for post in site.categories.personal %} {% include post-list.html %} {% + endfor %}
    {% else %} No posts to show. diff --git a/productivity.html b/productivity.html index 0423090..9fd617c 100644 --- a/productivity.html +++ b/productivity.html @@ -9,46 +9,7 @@ permalink: /productivity/
    {% if site.categories.productivity.size > 0 %}
      - {% for post in site.categories.productivity %} -
    • -
      - -
      - {{post.description}} -
      -
      -
      - {% if post.image %} - {{ post.description | escape }} - {% else %} - {{ post.description | escape }} - - {% endif %} {{ post.excerpt }} -
      - -
    • + {% for post in site.categories.productivity %}{% include post-list.html %} {% endfor %}
    {% else %} diff --git a/projects.html b/projects.html new file mode 100644 index 0000000..7a33931 --- /dev/null +++ b/projects.html @@ -0,0 +1,18 @@ +--- +layout: category +category-name: projects +permalink: /projects/ +--- + +

    Projects Posts

    + +
    + {% if site.categories.projects.size > 0 %} +
      + {% for post in site.categories.projects %} {% include post-list.html %} {% + endfor %} +
    + {% else %} + No posts to show. + {% endif %} +
    diff --git a/technology.html b/technology.html index 7bb7d2b..852b345 100644 --- a/technology.html +++ b/technology.html @@ -9,47 +9,8 @@ permalink: /technology/
    {% if site.categories.technology.size > 0 %}
      - {% for post in site.categories.technology %} -
    • -
      - -
      - {{post.description}} -
      -
      -
      - {% if post.image %} - {{ post.description | escape }} - {% else %} - {{ post.description | escape }} - - {% endif %} {{ post.excerpt }} -
      - -
    • - {% endfor %} + {% for post in site.categories.technology %} {% include post-list.html %} {% + endfor %}
    {% else %} No posts to show.