summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-02-19 20:55:07 +0100
committerlemon <lsof@mailbox.org>2022-02-19 20:55:07 +0100
commit8b3f0aa590b51cfd7696ed212adf94fa43a0e858 (patch)
treedaefae18ee470d4f2f1622779d3cbf52d2bdeb61 /templates
initial
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html19
-rw-r--r--templates/blog-page.html14
-rw-r--r--templates/blog.html15
-rw-r--r--templates/index.html34
4 files changed, 82 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..149831a
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>{% block title %} {% endblock %}</title>
+ <link rel="stylesheet" href="/style.css"/>
+</head>
+
+<body>
+ <section class="section">
+ <div class="container">
+ {% block content %} {% endblock %}
+ </div>
+ </section>
+</body>
+
+</html>
diff --git a/templates/blog-page.html b/templates/blog-page.html
new file mode 100644
index 0000000..b8263e0
--- /dev/null
+++ b/templates/blog-page.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+
+{% block title %}{{ page.title }}{% endblock title %}
+
+{% block content %}
+<h1 class="title">
+ {{ page.title }}
+</h1>
+<p class="subtitle">{{ page.date | date(format="%-d %b %Y") }}</p>
+
+<hr>
+{{ page.content | safe }}
+<hr> <a href="../">Go back</a>
+{% endblock content %}
diff --git a/templates/blog.html b/templates/blog.html
new file mode 100644
index 0000000..afee41d
--- /dev/null
+++ b/templates/blog.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+
+{% block title %}lemon's site{% endblock title %}
+
+{% block content %}
+<h1 class="title">
+ {{ section.title }}
+</h1>
+<ul>
+ {% for page in section.pages %}
+ <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{ page.date }})</li>
+ {% endfor %}
+</ul>
+<hr> <a href="../">Go back</a>
+{% endblock content %}
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..d6c2755
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,34 @@
+{% extends "base.html" %}
+
+{% block title %}lemon's site{% endblock title %}
+{% block content %}
+
+<h1 class="title">lemon's site</h1>
+Hi, I'm lemon (she/her). I like compilers, tool-assisted speedruns and low level
+programming among other things. I do stuff sometimes. Occasionally I might
+share some of that stuff here.
+
+<h3>links</h3>
+
+<ul>
+<li><a href="/mips.html">web MIPS assembler/disassembler (incomplete)</a>
+<li><a href="/b">blog</a> (last updated on {{ get_section(path="b/_index.md") | get(key="pages") | map(attribute="date") | first }})
+<li><a href="https://git.sr.ht/~lsof/">git</a>
+<li><a href="https://www.youtube.com/channel/UCoZ8JbiXlq_Zh0DGvaGRTDQ">youtube</a>
+<li><img src="/asset/link.png" width="18" height="23">
+</ul>
+
+<h3>contact</h3>
+
+<ul>
+<!--li><strong>lemon#8558</strong> on discord </li--!>
+<li><img src="/asset/mailto.png" width="128" height="21">
+</ul>
+
+<hr>
+
+<img src="/asset/nvim.png">
+<img src="/asset/lynx.png">
+<img src="/asset/linux.png">
+
+{% endblock content %}