reboot as pandoc-based markdown proj
This commit is contained in:
parent
c1e3bba6cf
commit
8882bbdc69
8 changed files with 110 additions and 140 deletions
28
Dockerfile
Normal file
28
Dockerfile
Normal file
|
@ -0,0 +1,28 @@
|
|||
FROM nginx:stable
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
pandoc \
|
||||
--no-install-recommends && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p /app/markdown
|
||||
|
||||
COPY *.md /app/markdown
|
||||
COPY *.md /usr/share/nginx/html
|
||||
COPY template.html /app/markdown
|
||||
|
||||
COPY default.conf /etc/nginx/conf.d
|
||||
|
||||
RUN for md_file in /app/markdown/*.md; do \
|
||||
if [ -f "$md_file" ]; then \
|
||||
filename=$(basename -- "$md_file"); \
|
||||
name="${filename%.*}"; \
|
||||
echo "Converting $filename to $name.html"; \
|
||||
pandoc "$md_file" -o "/usr/share/nginx/html/$name.html" \
|
||||
--template=/app/markdown/template.html \
|
||||
--standalone; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
EXPOSE 80
|
|
@ -1,38 +0,0 @@
|
|||
worker_processes 1;
|
||||
error_log stderr;
|
||||
pid nginx.pid;
|
||||
daemon off;
|
||||
|
||||
events {
|
||||
worker_connections 768;
|
||||
}
|
||||
|
||||
http {
|
||||
types_hash_max_size 2048;
|
||||
include mime.types;
|
||||
charset UTF-8;
|
||||
server {
|
||||
listen {{ $.PORT }};
|
||||
server_name _;
|
||||
{{ if ne $.NGINX_ROOT "" }}
|
||||
root /app/www/{{ $.NGINX_ROOT }};
|
||||
{{ else }}
|
||||
root /app/www;
|
||||
{{ end }}
|
||||
index index.html;
|
||||
port_in_redirect off;
|
||||
|
||||
location /now {
|
||||
try_files /now.html =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
{{ if ne $.NGINX_DEFAULT_REQUEST "" }}
|
||||
try_files $uri $uri/ /{{ $.NGINX_DEFAULT_REQUEST }};
|
||||
{{ else }}
|
||||
try_files $uri $uri/ =404;
|
||||
{{ end }}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
16
default.conf
Normal file
16
default.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
try_files $uri $uri.html $uri/ =404;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
56
index.html
56
index.html
|
@ -1,56 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>thermokar.st</title>
|
||||
<style type="text/css">
|
||||
body{
|
||||
max-width: 35em;
|
||||
margin: 0 auto;
|
||||
line-height: 1.5;
|
||||
font-family: sans-serif;
|
||||
font-size: large;
|
||||
}
|
||||
</style>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
<h1>
|
||||
<a href="https://thermokar.st">thermokar.st</a>
|
||||
</h1>
|
||||
<p>
|
||||
senior software engineer at
|
||||
<a href="https://www.klaviyo.com/"><strong>klaviyo</strong></a>.
|
||||
</p>
|
||||
<h2>
|
||||
<a href="https://thermokar.st/now">now</a> |
|
||||
<a href="https://docs.google.com/document/d/e/2PACX-1vR44-lKPVikU7PjGKjO3vBlTXeTgULeowFSF75pHHjPPvwfKeNfU2M8YXsmURWCJGIyb2Chgst-5n7T/pub">resume</a> |
|
||||
<a href="https://docs.google.com/document/d/e/2PACX-1vSSAGQWRA5yENXD6BwuTDY1EAMEMws4RcxfkW6wa8Y3jddS4d0C3go4-0mJO-94FHi1X_zRg8w-Cplp/pub">curriculum vitae</a>
|
||||
</h2>
|
||||
<h2>profiles</h2>
|
||||
<div>
|
||||
<ul>
|
||||
<li><a href="https://github.com/thermokarst">https://github.com/thermokarst</a></li>
|
||||
<li><a href="https://git.sr.ht/~thermokarst">https://git.sr.ht/~thermokarst (squatting)</a></li>
|
||||
<li><a href="https://github.com/matthew-eb">https://github.com/matthew-eb (inactive, job-specific)</a></li>
|
||||
<li><a href="https://gitlab.com/thermokarst">https://gitlab.com/thermokarst (mostly inactive)</a></li>
|
||||
<li><a href="https://thermokarst.itch.io/">https://thermokarst.itch.io/</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<h2>properties</h2>
|
||||
<div>
|
||||
<ul>
|
||||
<li><a href="https://thermokar.st">https://thermokar.st</a></li>
|
||||
<ul>
|
||||
<li>gemini://devlog.thermokar.st (<a href="https://portal.mozz.us/gemini/devlog.thermokar.st">http proxy</a>)</li>
|
||||
<li><a href="https://gpx.thermokar.st">https://gpx.thermokar.st</a></li>
|
||||
<li><a href="https://zettel.thermokar.st">https://zettel.thermokar.st</a></li>
|
||||
</ul>
|
||||
<li><a href="https://www.akdillon.net">https://www.akdillon.net</a></li>
|
||||
<ul>
|
||||
<li><a href="https://akindices.akdillon.net">https://akindices.akdillon.net</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
26
index.md
Normal file
26
index.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
# [thermokar.st](/)
|
||||
|
||||
senior software engineer at [**klaviyo**](https://www.klaviyo.com/)
|
||||
|
||||
## [now](/now) | [resume][resume] | [curriculum vitae][cv]
|
||||
|
||||
## profiles
|
||||
|
||||
- [https://github.com/thermokarst](https://github.com/thermokarst)
|
||||
- [https://git.sr.ht/~thermokarst](https://git.sr.ht/~thermokarst) (squatting)
|
||||
- [https://github.com/matthew-eb](https://github.com/matthew-eb) (inactive, job-specific)
|
||||
- [https://github.com/matthew-kv](https://github.com/matthew-kv) (job-specific)
|
||||
- [https://gitlab.com/thermokarst](https://gitlab.com/thermokarst) (mostly inactive)
|
||||
- [https://thermokarst.itch.io/](https://thermokarst.itch.io/)
|
||||
|
||||
## properties
|
||||
|
||||
- [https://thermokar.st](https://thermokar.st)
|
||||
- [gemini://devlog.thermokar.st](gemini://devlog.thermokar.st) ([http proxy](https://portal.mozz.us/gemini/devlog.thermokar.st))
|
||||
- [https://gpx.thermokar.st](https://gpx.thermokar.st)
|
||||
- [https://zettel.thermokar.st](https://zettel.thermokar.st)
|
||||
- [http://www.akdillon.net](http://www.akdillon.net)
|
||||
- [http://akindices.akdillon.net](http://akindices.akdillon.net)
|
||||
|
||||
[resume]: https://docs.google.com/document/d/e/2PACX-1vR44-lKPVikU7PjGKjO3vBlTXeTgULeowFSF75pHHjPPvwfKeNfU2M8YXsmURWCJGIyb2Chgst-5n7T/pub
|
||||
[cv]: https://docs.google.com/document/d/e/2PACX-1vSSAGQWRA5yENXD6BwuTDY1EAMEMws4RcxfkW6wa8Y3jddS4d0C3go4-0mJO-94FHi1X_zRg8w-Cplp/pub
|
46
now.html
46
now.html
|
@ -1,46 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>thermokar.st</title>
|
||||
<style type="text/css">
|
||||
body{
|
||||
max-width: 35em;
|
||||
margin: 0 auto;
|
||||
line-height: 1.5;
|
||||
font-family: sans-serif;
|
||||
font-size: large;
|
||||
}
|
||||
</style>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
<h1>
|
||||
<a href="https://thermokar.st">thermokar.st</a>
|
||||
</h1>
|
||||
<h2>
|
||||
now
|
||||
</h2>
|
||||
<div>
|
||||
<h3>reading</h3>
|
||||
<ul>
|
||||
<li><a href="https://kobo.com/en-US/ebook/of-boys-and-men-6">Of Boys and Men</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h3>gaming</h3>
|
||||
<ul>
|
||||
<li>Another Crab's Treasure (Switch)</li>
|
||||
<li>Elden Ring (PC)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h3>music</h3>
|
||||
<ul>
|
||||
<li>Sleep Token - Sundowning</li>
|
||||
<li>Sleep Token - This Place Will Become Your Tomb</li>
|
||||
<li>Sleep Token - Take Me Back To Eden</li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
17
now.md
Normal file
17
now.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# [thermokar.st](/)
|
||||
|
||||
## now
|
||||
|
||||
### reading
|
||||
|
||||
- The Terror
|
||||
|
||||
### gaming
|
||||
|
||||
- Elden Ring (PC)
|
||||
|
||||
### music
|
||||
|
||||
- Sleep Token - Sundowning
|
||||
- Sleep Token - This Place Will Become Your Tomb
|
||||
- Sleep Token - Take Me Back To Eden
|
23
template.html
Normal file
23
template.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>thermokar.st</title>
|
||||
<style type="text/css">
|
||||
body{
|
||||
max-width: 35em;
|
||||
margin: 0 auto;
|
||||
line-height: 1.5;
|
||||
font-family: sans-serif;
|
||||
font-size: large;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
$body$
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Reference in a new issue