{% extends "base.html" %} {% block content %}

My Work

Articles

{% set blog_section = get_section(path="blog/_index.md") %} {% for page in blog_section.pages %}

{{ page.title }}

{% set day = page.date | date(format="%e") %} {% set month = page.date | date(format="%B") %} {% set year = page.date | date(format="%Y") %} {% set day_suffix = "" %} {% if day in ["1", "21", "31"] %} {% set day_suffix = "st" %} {% elif day in ["2", "22"] %} {% set day_suffix = "nd" %} {% elif day in ["3", "23"] %} {% set day_suffix = "rd" %} {% else %} {% set day_suffix = "th" %} {% endif %} Posted {{ day }}{{ day_suffix }} {{ month }} {{ year }}

{{ page.content | striptags | truncate(length=255) }}

{% endfor %}
Here's what I'm working on over at my Gitea instance.
{% endblock content %}