From c39afe487255692a7659fa1c37c9156bcc3e0c78 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 5 Apr 2022 12:54:25 -0700 Subject: [PATCH] infra for rss feed --- content/changelog.md | 44 ++------------------ content/changelog/1.6.md | 10 +++++ content/releases.md | 1 + static/releases/cwtch-v1.6.2/changelog.md | 41 ++++++++++++++++++ themes/cwtch/layouts/partials/head.html | 1 + themes/cwtch/layouts/section/rss.xml | 40 ++++++++++++++++++ themes/cwtch/layouts/shortcodes/release.html | 2 + 7 files changed, 98 insertions(+), 41 deletions(-) create mode 100644 content/changelog/1.6.md create mode 100644 content/releases.md create mode 100644 static/releases/cwtch-v1.6.2/changelog.md create mode 100644 themes/cwtch/layouts/section/rss.xml create mode 100644 themes/cwtch/layouts/shortcodes/release.html diff --git a/content/changelog.md b/content/changelog.md index 3cd3795..7108d36 100644 --- a/content/changelog.md +++ b/content/changelog.md @@ -6,49 +6,11 @@ draft: false
+ + ## Cwtch Beta 1.6 - February 11th 2022 -For a more detailed overview of changes present in the 1.6 release see issues tagged [cwtch-beta-1.6](https://git.openprivacy.ca/cwtch.im/cwtch-ui/issues?q=&type=all&sort=&state=closed&labels=158&milestone=0&assignee=0) in our -issue tracker. - -A special thanks to the amazing volunteer translators and testers who made this release possible. - -* **New Features:** - - **Custom Profile Images** - - This requires enabling the Filesharing and Image Preview experiments - - **Advanced Tor Configuration** - - Cwtch can now be configured to cache Tor consensus information, use predefined ports, and connect to an external, system Tor - - Tor Circuit information is now available for P2P Conversations - - **Notification Policies** - - You can now mute specific conversations, turn off notifications entirely, - or switch all notifications to opt-in -* **Bug Fixes / Improvements:** - - Images are now displayed for the sender as well as the recipients - - Deleting P2P contacts is now supported again - - *Clickable Links* will no longer prepend `https` to the text of the - displayed URL - - Closing via the windows exit button on Linux now triggers Cwtch to - shut down cleanly - - Packaged Tor has been upgraded - - New [integration testing infrastructure](https://openprivacy.ca/discreet-log/23-cucumber-testing/) - - Fixes to prevent extensive word wrapping on Android Devices (1.6.1) - - Num-pad Enter now triggers sending a message, instead of inserting a new line (1.6.1) - - Sending a message via a keyboard or via the send button now invokes identical logic (1.6.1) - - Android Notification Image Fetching fixes (1.6.2) - - Android Group Sync Status fixes (1.6.2) - - Message View Rendering Issues fixes (1.6.2) - - Improved Android Worker Robustness on Restart/Shutdown (1.6.2) -* **Accessibility / UX:** - - Notifications are now translatable - - Translations: French, Italian, German, Spanish, Romanian, Norwegian, Danish, Welsh, Russian, Polish, Luxembourgish and Greek (1.6.2) - - Settings Pane is now broken down by subheadings - - Message view now displays an estimated character count/limit for new messages - - Fix bug that allows multiple file dialog windows to be opened when sharing - a file - - Number of unread messages from other loaded profiles are now summarized on the active profile - - -
+{{% release file="/static/releases/cwtch-v1.6.2/changelog.md" %}} # Cwtch Beta 1.5 - December 21st 2021 diff --git a/content/changelog/1.6.md b/content/changelog/1.6.md new file mode 100644 index 0000000..923c29f --- /dev/null +++ b/content/changelog/1.6.md @@ -0,0 +1,10 @@ +--- +title: "Cwtch 1.6.2 Changelog" +date: 2022-02-11T00:00:00 +draft: false +altlink: "https://cwtch.im/download" +--- + +## Cwtch 1.6.2 is now available for [download](/download/) + +{{% release file="/static/releases/cwtch-v1.6.2/changelog.md" %}} \ No newline at end of file diff --git a/content/releases.md b/content/releases.md new file mode 100644 index 0000000..d911241 --- /dev/null +++ b/content/releases.md @@ -0,0 +1 @@ +# Cwtch Releases \ No newline at end of file diff --git a/static/releases/cwtch-v1.6.2/changelog.md b/static/releases/cwtch-v1.6.2/changelog.md new file mode 100644 index 0000000..4b9664a --- /dev/null +++ b/static/releases/cwtch-v1.6.2/changelog.md @@ -0,0 +1,41 @@ +For a more detailed overview of changes present in the 1.6 release see issues tagged [cwtch-beta-1.6](https://git.openprivacy.ca/cwtch.im/cwtch-ui/issues?q=&type=all&sort=&state=closed&labels=158&milestone=0&assignee=0) in our +issue tracker. + +A special thanks to the amazing volunteer translators and testers who made this release possible. + +* **New Features:** + - **Custom Profile Images** + - This requires enabling the Filesharing and Image Preview experiments + - **Advanced Tor Configuration** + - Cwtch can now be configured to cache Tor consensus information, use predefined ports, and connect to an external, system Tor + - Tor Circuit information is now available for P2P Conversations + - **Notification Policies** + - You can now mute specific conversations, turn off notifications entirely, + or switch all notifications to opt-in +* **Bug Fixes / Improvements:** + - Images are now displayed for the sender as well as the recipients + - Deleting P2P contacts is now supported again + - *Clickable Links* will no longer prepend `https` to the text of the + displayed URL + - Closing via the windows exit button on Linux now triggers Cwtch to + shut down cleanly + - Packaged Tor has been upgraded + - New [integration testing infrastructure](https://openprivacy.ca/discreet-log/23-cucumber-testing/) + - Fixes to prevent extensive word wrapping on Android Devices (1.6.1) + - Num-pad Enter now triggers sending a message, instead of inserting a new line (1.6.1) + - Sending a message via a keyboard or via the send button now invokes identical logic (1.6.1) + - Android Notification Image Fetching fixes (1.6.2) + - Android Group Sync Status fixes (1.6.2) + - Message View Rendering Issues fixes (1.6.2) + - Improved Android Worker Robustness on Restart/Shutdown (1.6.2) +* **Accessibility / UX:** + - Notifications are now translatable + - Translations: French, Italian, German, Spanish, Romanian, Norwegian, Danish, Welsh, Russian, Polish, Luxembourgish and Greek (1.6.2) + - Settings Pane is now broken down by subheadings + - Message view now displays an estimated character count/limit for new messages + - Fix bug that allows multiple file dialog windows to be opened when sharing + a file + - Number of unread messages from other loaded profiles are now summarized on the active profile + +
+
\ No newline at end of file diff --git a/themes/cwtch/layouts/partials/head.html b/themes/cwtch/layouts/partials/head.html index a656ad4..2d9c48c 100644 --- a/themes/cwtch/layouts/partials/head.html +++ b/themes/cwtch/layouts/partials/head.html @@ -16,6 +16,7 @@ + diff --git a/themes/cwtch/layouts/section/rss.xml b/themes/cwtch/layouts/section/rss.xml new file mode 100644 index 0000000..1e35f69 --- /dev/null +++ b/themes/cwtch/layouts/section/rss.xml @@ -0,0 +1,40 @@ +{{- $pctx := . -}} + {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} + {{- $pages := slice -}} + {{- if or $.IsHome $.IsSection -}} + {{- $pages = $pctx.RegularPages -}} + {{- else -}} + {{- $pages = $pctx.Pages -}} + {{- end -}} + {{- $limit := .Site.Config.Services.RSS.Limit -}} + {{- if ge $limit 1 -}} + {{- $pages = $pages | first $limit -}} + {{- end -}} + {{- printf "" | safeHTML }} + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ with .Site.LanguageCode }} + {{.}}{{end}} + + {{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{- with .OutputFormats.Get "RSS" -}} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{- end -}} + {{ range $pages }} + + {{ .Title }} + {{ .Params.altlink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Summary | html }} + + {{ end }} + + diff --git a/themes/cwtch/layouts/shortcodes/release.html b/themes/cwtch/layouts/shortcodes/release.html new file mode 100644 index 0000000..e71f506 --- /dev/null +++ b/themes/cwtch/layouts/shortcodes/release.html @@ -0,0 +1,2 @@ +{{ $file := .Get "file" | readFile }} +{{ (print $file) | markdownify }} \ No newline at end of file