From cc4d6925f8391f8de5d6dc69844a56c57f0655b7 Mon Sep 17 00:00:00 2001 From: gutmet Date: Thu, 29 Oct 2020 18:43:12 +0100 Subject: [PATCH] rss template for home --- rssHome.template | 43 ++++++++++++++++++++++++++++ rss.template => rssTimeline.template | 0 2 files changed, 43 insertions(+) create mode 100644 rssHome.template rename rss.template => rssTimeline.template (100%) diff --git a/rssHome.template b/rssHome.template new file mode 100644 index 0000000..ad35748 --- /dev/null +++ b/rssHome.template @@ -0,0 +1,43 @@ + + + +Home +https://twitter.com/home +Twitter Home + +{{range $index, $post := .}} + +{{$post.Id_str}} +
{{$status.Text}} +{{range $idxMedia, $media := $status.Extended_entities.Media}} +
+{{end}} + +{{if $status.Quoted_status}} +{{$quotedUser := $status.Quoted_status.User.Screen_name}} +

Quotes +@{{$quotedUser}}:

{{$status.Quoted_status.Text}} +{{range $idxMedia, $media := $status.Quoted_status.Extended_entities.Media}} +
+{{end}} +{{end}} + +]]>
+ +https://twitter.com/{{$user}}/status/{{$status.Id_str}} +https://twitter.com/{{$user}}/status/{{$status.Id_str}} +{{$post.Created_at.Time.Format "Mon, 02 Jan 2006 15:04:05 -0700"}} +
+{{- end}} + +
+
+ diff --git a/rss.template b/rssTimeline.template similarity index 100% rename from rss.template rename to rssTimeline.template