From e86f65b9dbf82e70bbb5fc5f7f4e73190994b4f7 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Wed, 15 Dec 2021 11:54:29 +0100
Subject: Add section for services
---
content/services/_index.md | 11 +++++++++++
content/services/paste.md | 21 +++++++++++++++++++++
layouts/_default/baseof.html | 4 +++-
layouts/_default/list.html | 11 +++++++++++
layouts/_default/section.html | 19 -------------------
layouts/_default/single.html | 10 ++++++++++
6 files changed, 56 insertions(+), 20 deletions(-)
create mode 100644 content/services/_index.md
create mode 100644 content/services/paste.md
create mode 100644 layouts/_default/list.html
delete mode 100644 layouts/_default/section.html
create mode 100644 layouts/_default/single.html
diff --git a/content/services/_index.md b/content/services/_index.md
new file mode 100644
index 0000000..dd98e8b
--- /dev/null
+++ b/content/services/_index.md
@@ -0,0 +1,11 @@
+---
+title: Services
+---
+
+These are all the services I run for public use.
+
+
diff --git a/content/services/paste.md b/content/services/paste.md
new file mode 100644
index 0000000..4a89816
--- /dev/null
+++ b/content/services/paste.md
@@ -0,0 +1,21 @@
+---
+title: Pastes
+---
+
+Pastes are hosted through [fiche](https://github.com/solusipse/fiche). The
+domain on which the pastes become available is `https://p.tyil.nl`. The easiest
+way to create a new paste is with `nc`.
+
+To paste the output of a given command:
+
+```
+$command | nc tyil.nl 9999
+```
+
+Or, to upload the contents of a file:
+
+```
+nc tyil.nl 9999 < file
+```
+
+The buffer size is set to 32k, so that is the maximum size you can paste to it.
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index a3478ab..a88cca2 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -20,7 +20,9 @@
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..a9698f8
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,11 @@
+{{ define "main" }}
+{{ .Title }}
+{{ .Content }}
+
+ {{ range .Paginator.Pages }}
+ -
+ {{ .Title }}
+
+ {{ end }}
+
+{{ end }}
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
deleted file mode 100644
index 144b79a..0000000
--- a/layouts/_default/section.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{{ define "main" }}
-{{ .Title }}
-{{ .Content }}
-
- {{ range .Paginator.Pages }}
- -
-
- {{ .Title }}
-
-
- {{ .Date | dateFormat "2006-01-02" }}
- {{- range .Params.tags }}
- #{{ . }}
- {{- end }}
-
-
- {{ end }}
-
-{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..79dc350
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+
+
+
+ {{ .Content }}
+
+
+{{ end }}
--
cgit v1.1