aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDawid Potocki <dawid@dawidpotocki.com>2021-03-15 05:05:37 +1300
committerDawid Potocki <dawid@dawidpotocki.com>2021-03-26 00:03:52 +1300
commit84fb148fa065c7f069c59db809502b037849be3d (patch)
tree1784eec4072b2b66c82265339064053c3b9b435a
parentd2d2325277417744607afc43dbc171ea08703497 (diff)
Add an `/about` page and `flag.html` partial
-rw-r--r--_includes/flag.html7
-rw-r--r--_includes/nav.html1
-rw-r--r--_layouts/default.html8
-rw-r--r--pages/about.md50
-rw-r--r--pages/index.html26
5 files changed, 69 insertions, 23 deletions
diff --git a/_includes/flag.html b/_includes/flag.html
new file mode 100644
index 0000000..9f05385
--- /dev/null
+++ b/_includes/flag.html
@@ -0,0 +1,7 @@
+<span class="whitespace-nowrap">
+ <img
+ src="/assets/img/flags/{{ include.code }}.svg"
+ class="h-4 inline-block"
+ aria-hidden="true" />
+ {{ include.country }}
+</span>
diff --git a/_includes/nav.html b/_includes/nav.html
index d5d3aa6..440c079 100644
--- a/_includes/nav.html
+++ b/_includes/nav.html
@@ -9,6 +9,7 @@
<div id="nav-left" class="hidden flex-col md:flex md:flex-row">
<a class="nav-link" href="/accounts/">Accounts and Keys</a>
<a class="nav-link" href="/hardware/">Hardware</a>
+ <a class="nav-link" href="/about/">About</a>
</div>
<div id="nav-right" class="hidden flex-col md:flex md:flex-row -mr-2">
<a class="nav-link" href="https://github.com/dawidpotocki/dawidpotocki.com/">Source</a>
diff --git a/_layouts/default.html b/_layouts/default.html
index 5bbfd3e..7ad1bc5 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -20,8 +20,12 @@
{% include nav.html %}
<div id="container" class="p-6 pt-2 max-w-5xl mx-auto">
<main id="main" class="max-w-5xl">
- {% if page.title %}
- <h1 class="-mt-2">{{ page.title }}</h1>
+ {% if page.header != "false" %}
+ {% if page.header %}
+ <h1 class="-mt-2">{{ page.header }}</h1>
+ {% elsif page.title %}
+ <h1 class="-mt-2">{{ page.title }}</h1>
+ {% endif %}
{% endif %}
{{ content }}
</main>
diff --git a/pages/about.md b/pages/about.md
new file mode 100644
index 0000000..c188db9
--- /dev/null
+++ b/pages/about.md
@@ -0,0 +1,50 @@
+---
+permalink: /about/
+title: About
+header: About me
+layout: default
+---
+
+<em title="One way to say hello in Polish">Serwus</em>, my name is Dawid
+Potocki and I'm a student interested in technology. I was born in {% include
+flag.html country="Poland" code="pl" %} (2002-12-14), but I currently happily
+live in {% include flag.html country="New Zealand." code="nz" %} I'm an
+atheist, vegetarian and a bit shy, but it is what it is. I like complaining
+about random stuff in my free time and wish people a happy new day at midnight
+for absolutely no reason.
+
+# About site
+
+This is my small personal space on the Internet built using various horribly
+written software. If you want to replicate my setup or something, you could
+find this list somewhat helpful.
+
+### [dawidpotocki.com](https://dawidpotocki.com)
+
+- **OS**: [Alpine Linux](https://alpinelinux.org)
+- **Server**: [Vultr](https://www.vultr.com/?ref=8632367-6G)<sup>Referral</sup> (6USD High Frequency VPS)
+- **Domain**: [Porkbun](https://porkbun.com)
+- **DNS**: [Cloudflare](https://www.cloudflare.com)
+
+#### [git.dawidpotocki.com](https://git.dawidpotocki.com)
+
+- **Frontend**: [cgit](https://git.zx2c4.com/cgit/)
+- **Backend**: [Gitolite](https://gitolite.com/gitolite/)
+
+#### [mail.dawidpotocki.com](https://mail.dawidpotocki.com)
+
+- **SMTP**: [Postfix](http://www.postfix.org)
+- **IMAP**: [Dovecot](https://www.dovecot.org)
+- **DKIM**: [OpenDKIM](http://www.opendkim.org)
+
+#### [matrix.dawidpotocki.com](https://matrix.dawidpotocki.com)
+
+- **Backend**: [Synapse](https://github.com/matrix-org/synapse)
+
+##### [element.dawidpotocki.com](https://element.dawidpotocki.com)
+
+- **Frontend**: [Element](https://github.com/vector-im/element-web)
+
+##### [hydrogen.dawidpotocki.com](https://hydrogen.dawidpotocki.com)
+
+- **Frontend**: [Hydrogen](https://github.com/vector-im/hydrogen-web)
diff --git a/pages/index.html b/pages/index.html
index 4839f83..041cae2 100644
--- a/pages/index.html
+++ b/pages/index.html
@@ -2,33 +2,17 @@
permalink: /
layout: default
description:
- Serwus, welcome to my boring website. I am a student interested in technology, born in Poland and living in New Zealand.
+ Serwus, my name is Dawid Potocki and I'm a student interested in technology. I was born in Poland, but I currently happily live in New Zealand.
pagination:
enabled: true
---
{% if paginator.page == 1 %}
<div class="card rounded-b-none sm:rounded-bl">
- <em title="One way to say hello in Polish">Serwus</em>,
- welcome to my boring website. I am a student interested in technology, born in
- <span class="whitespace-nowrap">
- <img
- src="/assets/img/flags/pl.svg"
- class="h-4 inline-block"
- alt="Flag of Poland"
- aria-hidden="true" />
- Poland
- </span>
- and living in
- <span class="whitespace-nowrap">
- <img
- src="/assets/img/flags/nz.svg"
- class="h-4 inline-block"
- alt="Flag of New Zealand"
- aria-hidden="true" />
- New Zealand.
- </span>
- I like having pineapple on my pizza.
+ <em title="One way to say hello in Polish">Serwus</em>, My name is Dawid
+ Potocki and I'm a student interested in technology. I was born in {%
+ include flag.html country="Poland" code="pl" %}, but I currently happily
+ live in {% include flag.html country="New Zealand." code="nz" %}
</div>
<div class="sm:flex justify-end mb-10 sm:-mb-4">