diff --git a/templates/index.html b/templates/index.html index 09db4fe..cbd48cf 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,48 +4,79 @@

My Work

-
- -
Le Mans Ultimate
- -
World Endurance Championship racing simulation.
-
+
+ + +

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 %}
@@ -54,35 +85,6 @@
-

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 %} -