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.Date }} + + {{ end }} + {{ with .Params.Author }} + + {{ end }} +
+ + {{ if .Params.tags }} + + {{ range .Params.tags }} + #{{ . }}  + {{ end }} + + {{ end }} + + {{ with .Params.Cover }} + + {{ end }} + +
+ {{ .Content }} +
+ {{ if or .NextInSection .PrevInSection }} + + {{ end }} + + {{ partial "comments.html" . }} +
+{{ end }}