diff --git a/static/base.css b/static/base.css index 3e800cf..ec5ec2d 100644 --- a/static/base.css +++ b/static/base.css @@ -74,6 +74,14 @@ body .banner > *:first-child { font-size: 1.5em; } +body .columns { + display: flex; +} + +body .columns > *:not(:last-child) { + margin-right: 20px; +} + @media (prefers-color-scheme: dark) { body { color: white; diff --git a/static/scripts/gitea.js b/static/scripts/gitea.js new file mode 100644 index 0000000..115727c --- /dev/null +++ b/static/scripts/gitea.js @@ -0,0 +1,11 @@ +const apiURL = "https://sauce.pizzawednes.day/api/v1/" + +const jsonify = response => response.json() + +/** + * Fetches a manifest of all public Github repositories belonging to a given user. + * + * @param {string} username Identifier of the target Github user. + * @returns @see Promise of an array containing all public repository metadata for a given user. + */ +export const fetchRepos = username => fetch(`${apiURL}users/${username}/repos`).then(jsonify) diff --git a/static/showreel/afterglow-menu.png b/static/showreel/afterglow-menu.png index 88c64c7..2c818fc 100644 --- a/static/showreel/afterglow-menu.png +++ b/static/showreel/afterglow-menu.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d377d435cc8d58cea667f88ba70660d51de880d24038c61bf59fdf15d1808e0e -size 451537 +oid sha256:f75013791e7dd73f0a3f5300d23b59f50e4280b6a25c480e91e6ddcd0fff84c7 +size 249527 diff --git a/static/showreel/le-mans-ultimate-hud.png b/static/showreel/le-mans-ultimate-hud.png new file mode 100644 index 0000000..693a02d --- /dev/null +++ b/static/showreel/le-mans-ultimate-hud.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0dd411484d3ac0df317b3c33de0e4af605b8c8e136daa28390db091f1fc32159 +size 963616 diff --git a/templates/base.html b/templates/base.html index 00bf53a..39fdd91 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,12 +11,12 @@
-
- {% block content %}{% endblock content %} +
+ {% block content %}{% endblock content %}
diff --git a/templates/index.html b/templates/index.html index f76eb76..09db4fe 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,5 +1,178 @@ {% extends "base.html" %} {% block content %} -hello world +

My Work

+ +
+ + +
+
Here's what I'm working on over at my Gitea instance.
+
+
+
+ +

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 %} + + + + + + {% endblock content %} diff --git a/templates/page.html b/templates/page.html index 59aca23..60e9886 100644 --- a/templates/page.html +++ b/templates/page.html @@ -2,8 +2,8 @@ {% block content %}
{{ page.content | safe }}