diff options
-rw-r--r-- | content/services/_index.md | 11 | ||||
-rw-r--r-- | content/services/paste.md | 21 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 4 | ||||
-rw-r--r-- | layouts/_default/list.html | 11 | ||||
-rw-r--r-- | layouts/_default/section.html | 19 | ||||
-rw-r--r-- | layouts/_default/single.html | 10 |
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 }} |