summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2021-12-15 11:54:29 +0100
committerPatrick Spek <p.spek@tyil.nl>2021-12-15 11:54:29 +0100
commite86f65b9dbf82e70bbb5fc5f7f4e73190994b4f7 (patch)
tree77a6e5defb773f2d941f7bed23a31a5ba4c8aaee
parent5c086bc52fa3a226bcf706b1f420a5d98ea377dd (diff)
Add section for services
-rw-r--r--content/services/_index.md11
-rw-r--r--content/services/paste.md21
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/_default/list.html11
-rw-r--r--layouts/_default/section.html19
-rw-r--r--layouts/_default/single.html10
6 files changed, 56 insertions, 20 deletions
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.
+
+<ul>
+{{ range .Pages }}
+ <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
+{{ end }}
+</ul>
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 @@
<div class="container">
<nav>
<a href="/" class="brand-name">{{ .Site.Title }}</a>
- <a href="/posts/">Blog</a>
+ {{ range .Site.Sections }}
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ {{ end }}
</nav>
</div>
</header>
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" }}
+<h1>{{ .Title }}</h1>
+{{ .Content }}
+<ul>
+ {{ range .Paginator.Pages }}
+ <li>
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </li>
+ {{ end }}
+</ul>
+{{ 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" }}
-<h1>{{ .Title }}</h1>
-{{ .Content }}
-<ul>
- {{ range .Paginator.Pages }}
- <li>
- <a href="{{ .Permalink }}">
- {{ .Title }}
- </a>
- <small>
- {{ .Date | dateFormat "2006-01-02" }}
- {{- range .Params.tags }}
- <a href="/tags/{{ . | lower }}">#{{ . }}</a>
- {{- end }}
- </small>
- </li>
- {{ end }}
-</ul>
-{{ 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" }}
+<article>
+ <header>
+ <h1>{{ .Title }}</h1>
+ </header>
+ <main>
+ {{ .Content }}
+ </main>
+</article>
+{{ end }}