From 6ba324f866fcec5821ff8238404c206c1d89e3d5 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sat, 19 Oct 2019 09:36:11 -0700 Subject: [PATCH] started a projects collection and moved nuttybot --- config.toml | 4 ++ content/{ => projects}/nuttybot.md | 6 ++- layouts/projects/list.html | 59 ++++++++++++++++++++++++++++ layouts/projects/single.html | 62 ++++++++++++++++++++++++++++++ 4 files changed, 130 insertions(+), 1 deletion(-) rename content/{ => projects}/nuttybot.md (95%) create mode 100644 layouts/projects/list.html create mode 100644 layouts/projects/single.html diff --git a/config.toml b/config.toml index 2a479b5..3786a50 100644 --- a/config.toml +++ b/config.toml @@ -47,6 +47,10 @@ paginate = 5 identifier = "chat" name = "Chat" url = "/chat" + [[languages.en.menu.main]] + identifier = "projects" + name = "Projects" + url = "/projects" [[languages.en.menu.main]] identifier = "gitlab" name = "GitLab" diff --git a/content/nuttybot.md b/content/projects/nuttybot.md similarity index 95% rename from content/nuttybot.md rename to content/projects/nuttybot.md index 7f1c0e7..64bf7ef 100644 --- a/content/nuttybot.md +++ b/content/projects/nuttybot.md @@ -1,11 +1,15 @@ --- -title: "Nuttybot" +title: "NuttyBot" date: 2019-10-19T06:27:14-07:00 draft: false +aliases: + - /nuttybot --- NuttyBot (also known as PnutBot) is a simple messaging client bot that allows you to post to your timeline and receive notifications when someone mentions you. It currently supports [Telegram](https://telegram.org), [Matrix](https://matrix.org), and [Pushover](https://pushover.net). + + * Receive a notification if someone mentions you * Reply directly to mentions * Create new posts to your timeline diff --git a/layouts/projects/list.html b/layouts/projects/list.html new file mode 100644 index 0000000..f726e35 --- /dev/null +++ b/layouts/projects/list.html @@ -0,0 +1,59 @@ +{{ define "main" }} +
+ {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} + {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} + + {{ $PageContext := . }} + {{ if .IsHome }} + {{ $PageContext = .Site }} + {{ end }} + {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" "projects") }} + + {{ range $paginator.Pages }} +
+

+ {{ .Title | markdownify }}

+ + + {{ if .Params.tags }} + + {{ end }} + + {{ with .Params.Cover }} + + {{ end }} + +
+ {{ if .Params.showFullContent }} + {{ .Content | markdownify }} + {{ else if .Description }} + {{ .Description | markdownify }} + {{ else }} + {{ if .Truncated }} + {{ .Summary | markdownify }} + {{ end }} + {{ end }} +
+ + {{ if not .Params.showFullContent }} +
+ {{ $.Site.Params.ReadMore }} → +
+ {{ end }} +
+ {{ end }} + {{ partial "pagination.html" . }} +
+{{ end }} diff --git a/layouts/projects/single.html b/layouts/projects/single.html new file mode 100644 index 0000000..56396d6 --- /dev/null +++ b/layouts/projects/single.html @@ -0,0 +1,62 @@ +{{ define "main" }} +
+

+ {{ .Title | markdownify }}

+ + + {{ if .Params.tags }} + + {{ end }} + + {{ with .Params.Cover }} + + {{ end }} + +
+ {{ .Content }} +
+ {{ if or .NextInSection .PrevInSection }} + + {{ end }} + + {{ partial "comments.html" . }} +
+{{ end }}