added chat section
This commit is contained in:
parent
8f6e50077f
commit
d37fc5f100
5 changed files with 201 additions and 1 deletions
|
@ -9,7 +9,7 @@ paginate = 5
|
||||||
# ["orange", "blue", "red", "green", "pink"]
|
# ["orange", "blue", "red", "green", "pink"]
|
||||||
themeColor = "orange"
|
themeColor = "orange"
|
||||||
# if you set this to 0, only submenu trigger will be visible
|
# if you set this to 0, only submenu trigger will be visible
|
||||||
showMenuItems = 2
|
showMenuItems = 3
|
||||||
# show selector to switch language
|
# show selector to switch language
|
||||||
showLanguageSelector = false
|
showLanguageSelector = false
|
||||||
# set theme to full screen width
|
# set theme to full screen width
|
||||||
|
@ -43,3 +43,7 @@ paginate = 5
|
||||||
identifier = "contact"
|
identifier = "contact"
|
||||||
name = "Contact"
|
name = "Contact"
|
||||||
url = "/contact"
|
url = "/contact"
|
||||||
|
[[languages.en.menu.main]]
|
||||||
|
identifier = "chat"
|
||||||
|
name = "Chat"
|
||||||
|
url = "/chat"
|
||||||
|
|
35
content/chat/allthingstech.md
Normal file
35
content/chat/allthingstech.md
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
---
|
||||||
|
title: "#allthingstech"
|
||||||
|
date: 2019-09-29T13:52:32-07:00
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
||||||
|
General public chat room discussing all things tech related.
|
||||||
|
|
||||||
|
|
||||||
|
**[matrix]**
|
||||||
|
[#allthingstech:monkeystew.net](https://matrix.to/#/#allthingstech:monkeystew.net)
|
||||||
|
|
||||||
|
<!--more-->
|
||||||
|
|
||||||
|
xmpp
|
||||||
|
[#allthingstech#monkeystew.net@matrix.xmpp.monkeystew.net](xmpp:#allthingstech#monkeystew.net@matrix.xmpp.monkeystew.net?join)
|
||||||
|
|
||||||
|
pnut
|
||||||
|
[all things tech](https://patter.chat/room/508)
|
||||||
|
|
||||||
|
irc
|
||||||
|
[#allthingstech](ircs://irc.monkeystew.net/allthingstech) on irc.monkeystew.net
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Rules**
|
||||||
|
|
||||||
|
- Be respectful
|
||||||
|
- No spamming
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Notice**
|
||||||
|
|
||||||
|
Some of the connected networks maintain a persistent chat history while others do not. Some participants may also keep their own copies of the conversation. Please be aware that regardless of how you connect your conversation is logged in multiple places.
|
40
content/chat/dev.md
Normal file
40
content/chat/dev.md
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
---
|
||||||
|
title: "#dev"
|
||||||
|
date: 2019-09-29T11:54:10-07:00
|
||||||
|
draft: false
|
||||||
|
---
|
||||||
|
|
||||||
|
My general chat room for development related things on the matrix network.
|
||||||
|
|
||||||
|
**[matrix]**
|
||||||
|
[#dev:monkeystew.net](https://matrix.to/#/#dev:monkeystew.net)
|
||||||
|
|
||||||
|
<!--more-->
|
||||||
|
|
||||||
|
xmpp
|
||||||
|
[#dev#monkeystew.net@matrix.xmpp.monkeystew.net](xmpp:#dev#monkeystew.net@matrix.xmpp.monkeystew.net?join)
|
||||||
|
|
||||||
|
pnut
|
||||||
|
[monkeystew dev](https://patter.chat/room/85)
|
||||||
|
|
||||||
|
gitter
|
||||||
|
[monkeystew-dev](https://gitter.im/monkeystew-dev/Lobby)
|
||||||
|
|
||||||
|
irc
|
||||||
|
[#dev](ircs://irc.monkeystew.net/dev) on irc.monkeystew.net
|
||||||
|
|
||||||
|
telegram
|
||||||
|
[monkeystew dev](https://t.me/joinchat/Av2-00ZWK3nZ-5GDkkksQg)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Rules**
|
||||||
|
|
||||||
|
- Be respectful
|
||||||
|
- No spamming
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Notice**
|
||||||
|
|
||||||
|
Some of the connected networks maintain a persistent chat history while others do not. Some participants may also keep their own copies of the conversation. Please be aware that regardless of how you connect your conversation is logged in multiple places.
|
59
layouts/chat/list.html
Normal file
59
layouts/chat/list.html
Normal 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" "chat") }}
|
||||||
|
|
||||||
|
{{ 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>
|
||||||
|
{{ 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 }}
|
62
layouts/chat/single.html
Normal file
62
layouts/chat/single.html
Normal 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>
|
||||||
|
{{ 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 }}
|
Loading…
Reference in a new issue