summaryrefslogtreecommitdiff
path: root/packages/web/site/templates/index.html
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2025-09-12 20:57:59 -0700
committerKleidi Bujari <mail@4kb.net>2025-09-12 21:00:27 -0700
commitfe96211bb8dc81fde57bf6900b840e69f2b218fc (patch)
treeff1c63e7962c6373199b94b8fd236b15e3441244 /packages/web/site/templates/index.html
parentab58c69b6db2902688841a4008221f72bbbb8692 (diff)
downloaddepot-fe96211bb8dc81fde57bf6900b840e69f2b218fc.tar.gz
depot-fe96211bb8dc81fde57bf6900b840e69f2b218fc.tar.bz2
depot-fe96211bb8dc81fde57bf6900b840e69f2b218fc.zip
move packages to overlay and expose certain packages
Diffstat (limited to 'packages/web/site/templates/index.html')
-rw-r--r--packages/web/site/templates/index.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/web/site/templates/index.html b/packages/web/site/templates/index.html
new file mode 100644
index 0000000..bc2994a
--- /dev/null
+++ b/packages/web/site/templates/index.html
@@ -0,0 +1,28 @@
+{% extends "base.html" %}
+{% block content %}
+
+{% for name in ["posts", "paper-reviews"] %}
+{% set section = get_section(path=name ~ "/_index.md") %}
+{%- if section.pages | length > 0 %}
+<div style="margin-bottom: 3em">
+ <h1>{{ section.title }}</h1>
+ <ul style="list-style: none; padding-left: 0">
+ {% for page in section.pages | slice(end=3) %}
+ <li style="margin-bottom: 1em">
+ <a href="{{ page.path }}">{{ page.title }}</a>
+ <br />
+ <time datetime="{{ page.date }}">
+ {{ page.date | date(format="%B %d, %Y") }}
+ </time>
+ </li>
+ {% endfor %}
+ </ul>
+
+ {%- if section.pages | length > 2 %}
+ <a href="{{ section.path }}">see more ↗</a>
+ {% endif %}
+</div>
+{% endif %}
+{% endfor %}
+
+{% endblock content %}