started a projects collection and moved nuttybot

This commit is contained in:
Morgan McMillian 2019-10-19 09:36:11 -07:00
parent 73c5ec1f2f
commit 6ba324f866
4 changed files with 130 additions and 1 deletions

View file

@ -47,6 +47,10 @@ paginate = 5
identifier = "chat" identifier = "chat"
name = "Chat" name = "Chat"
url = "/chat" url = "/chat"
[[languages.en.menu.main]]
identifier = "projects"
name = "Projects"
url = "/projects"
[[languages.en.menu.main]] [[languages.en.menu.main]]
identifier = "gitlab" identifier = "gitlab"
name = "GitLab" name = "GitLab"

View file

@ -1,11 +1,15 @@
--- ---
title: "Nuttybot" title: "NuttyBot"
date: 2019-10-19T06:27:14-07:00 date: 2019-10-19T06:27:14-07:00
draft: false 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). 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).
<!--more-->
* Receive a notification if someone mentions you * Receive a notification if someone mentions you
* Reply directly to mentions * Reply directly to mentions
* Create new posts to your timeline * Create new posts to your timeline

View file

@ -0,0 +1,59 @@
{{ define "main" }}
<div class="posts">
{{ $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 }}
<div class="post on-list">
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post-meta">
<span class="post-date">
</span>
{{ with .Params.Author }}<span class="post-author">::
{{ . }}</span>{{ end }}
</div>
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}">
{{- . -}}
</a>&nbsp;
{{ end }}
</span>
{{ end }}
{{ with .Params.Cover }}
<img src="{{ . | absURL }}" class="post-cover" />
{{ end }}
<div class="post-content">
{{ if .Params.showFullContent }}
{{ .Content | markdownify }}
{{ else if .Description }}
{{ .Description | markdownify }}
{{ else }}
{{ if .Truncated }}
{{ .Summary | markdownify }}
{{ end }}
{{ end }}
</div>
{{ if not .Params.showFullContent }}
<div>
<a class="read-more button"
href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
</div>
{{ end }}
</div>
{{ end }}
{{ partial "pagination.html" . }}
</div>
{{ end }}

View file

@ -0,0 +1,62 @@
{{ define "main" }}
<div class="post">
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post-meta">
{{ if .Params.Date }}
<span class="post-date">
</span>
{{ end }}
{{ with .Params.Author }}
<span class="post-author">::
{{ . }}
</span>
{{ end }}
</div>
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a>&nbsp;
{{ end }}
</span>
{{ end }}
{{ with .Params.Cover }}
<img src="{{ . | absURL }}" class="post-cover" />
{{ end }}
<div class="post-content">
{{ .Content }}
</div>
{{ if or .NextInSection .PrevInSection }}
<div class="pagination">
<div class="pagination__title">
<span
class="pagination__title-h">{{ $.Site.Params.ReadOtherPosts }}</span>
<hr />
</div>
<div class="pagination__buttons">
{{ if .NextInSection }}
<span class="button previous">
<a href="{{ .NextInSection.Permalink }}">
<span class="button__icon"></span>
<span class="button__text">{{ .NextInSection.Title }}</span>
</a>
</span>
{{ end }}
{{ if .PrevInSection }}
<span class="button next">
<a href="{{ .PrevInSection.Permalink }}">
<span class="button__text">{{ .PrevInSection.Title }}</span>
<span class="button__icon"></span>
</a>
</span>
{{ end }}
</div>
</div>
{{ end }}
{{ partial "comments.html" . }}
</div>
{{ end }}