diff options
| author | Alexander Kassouni <alex@kassouni.net> | 2026-09-28 21:35:50 -0700 |
|---|---|---|
| committer | Alexander Kassouni <alex@kassouni.net> | 2026-09-28 21:35:50 -0700 |
| commit | a570da443586fa3b3490b5add88ea5932456a5b3 (patch) | |
| tree | 41d45d56ef31b7e632578a7e384e7cb4bf25911f /site/templates | |
| parent | 151d2de0894d726de80d8702aea3335b9389de6f (diff) | |
site
Diffstat (limited to 'site/templates')
| -rw-r--r-- | site/templates/base.html | 29 | ||||
| -rw-r--r-- | site/templates/index.html | 21 | ||||
| -rw-r--r-- | site/templates/page.html | 12 | ||||
| -rw-r--r-- | site/templates/section.html | 16 |
4 files changed, 78 insertions, 0 deletions
diff --git a/site/templates/base.html b/site/templates/base.html new file mode 100644 index 0000000..7a12bf2 --- /dev/null +++ b/site/templates/base.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>{% block title %}kassouni.net{% endblock title %}</title> + <link rel="stylesheet" href="/style.css"> + <link rel="alternate" type="application/rss+xml" title="{{ config.title }}" href="/rss.xml"> +</head> +<body> + <header> + <nav> + <a class="brand" href="/">kassouni.net</a> + <ul> + <li><a href="/about/">about</a></li> + <li><a href="/blog/">blog</a></li> + </ul> + </nav> + </header> + <main> + {% block content %}{% endblock content %} + </main> + <footer> + <a href="https://git.kassouni.net">git</a> + <a href="/rss.xml">rss</a> + <a href="mailto:contact@kassouni.net">email</a> + </footer> +</body> +</html> diff --git a/site/templates/index.html b/site/templates/index.html new file mode 100644 index 0000000..ea40d1d --- /dev/null +++ b/site/templates/index.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} +{% block content %} + +<h1>Hello there!</h1> + +<div class="intro"> + <div class="intro-text"> + <p>Welcome to the personal website of <strong>Alex Kassouni</strong>.</p> + + <p> + I'm a <strong>software engineer</strong> with interests in <strong>machine learning</strong>, + <strong>programming languages</strong>, and <strong>mathematics</strong>. + </p> + + <p>If you'd like to get in touch, just shoot me an email at <a href="mailto:contact@kassouni.net">contact@kassouni.net</a>.</p> + </div> + + <img class="avatar" src="/me.jpg" alt="Alex Kassouni"/> +</div> + +{% endblock content %} diff --git a/site/templates/page.html b/site/templates/page.html new file mode 100644 index 0000000..dca2406 --- /dev/null +++ b/site/templates/page.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block title %}{{ page.title }} · kassouni.net{% endblock title %} + +{% block content %} +<article> + <h1>{{ page.title }}</h1> + {% if page.date %}<time datetime="{{ page.date }}">{{ page.date | date(format="%Y-%m-%d") }}</time>{% endif %} + + {{ page.content | safe }} +</article> +{% endblock content %} diff --git a/site/templates/section.html b/site/templates/section.html new file mode 100644 index 0000000..22594c4 --- /dev/null +++ b/site/templates/section.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block title %}{{ section.title | default(value="blog") }} · kassouni.net{% endblock title %} + +{% block content %} +{{ section.content | safe }} + +<ul class="post-list"> + {% for post in section.pages %} + <li> + <a href="{{ post.permalink | safe }}">{{ post.title }}</a> + {% if post.date %}<time datetime="{{ post.date }}">{{ post.date | date(format="%Y-%m-%d") }}</time>{% endif %} + </li> + {% endfor %} +</ul> +{% endblock content %} |