summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-03-11 21:47:48 +0100
committermms <michal@sapka.me>2024-03-11 21:47:48 +0100
commitefb36ed918be30a77351b9a67741bca520f90f1a (patch)
treed4b8bd3c761107dd5c337ae6fcb3c59d48987622
parenta455e66c0636a17cc57ea4d1f36b6407c96e8dd4 (diff)
feat: full content in rss
-rw-r--r--content-org/site.org10
-rw-r--r--content-org/star-trek.org16
-rw-r--r--content/site/updates/2024/rss-full.md14
-rw-r--r--content/star-trek/home.md8
-rw-r--r--content/star-trek/stv/episodes.md4
-rw-r--r--content/star-trek/tng/episodes.md6
-rw-r--r--layouts/_default/rss.xml4
7 files changed, 26 insertions, 36 deletions
diff --git a/content-org/site.org b/content-org/site.org
index 336ec12..a279eda 100644
--- a/content-org/site.org
+++ b/content-org/site.org
@@ -13,6 +13,16 @@
:EXPORT_HUGO_SECTION: site/updates/2024
:END:
+** DONE Full content in RSS
+CLOSED: [2024-03-11 Mon 21:43]
+:PROPERTIES:
+:EXPORT_FILE_NAME: rss-full
+:EXPORT_HUGO_CUSTOM_FRONT_MATTER: abstract RSS feed not provides the full content
+:END:
+A small info: all RSS feed from this site should now rock /full/ content in <description> tag.
+This is exactly correct, as full content goes into <content>, but a lot of RSS readers ignore it.
+
+So, have fun!
** DONE Moved to Gitea
CLOSED: [2024-02-03 Sat 21:55]
:PROPERTIES:
diff --git a/content-org/star-trek.org b/content-org/star-trek.org
index aa5fad7..ccf7546 100644
--- a/content-org/star-trek.org
+++ b/content-org/star-trek.org
@@ -49,10 +49,6 @@ You can follow the journey using [[/st-updates/index.xml][RSS]]
[^trakt]: I've made the mistake of starting the adventure on Netflix, so the data is lost.
**** The Next Generation
-#+attr_shortcode: "st-tng-logo.svg"
-#+begin_st-logo
-Voyager
-#+end_st-logo
*The* Star Trek.
Gene Roddenberry's vision came to life.
@@ -69,10 +65,6 @@ The Next Generation
#+end_menu
**** Voyager
-#+attr_shortcode: "st-voy-logo.svg"
-#+begin_st-logo
-Voyager
-#+end_st-logo
I was transferred to Voyager soon after serving on Deep Space Nine [^paradox] and this is my current station. I have to say that the crew is nowhere near as nice as on Enterprise NCC-1701 and our adventures in Delta Quadrant are nowhere near those of Deep Space Nine, but all in all I am very much enjoying my stay here. It won't be the most memorable voyage, but it will be very nice and worth the hustle.
[^paradox]: I am aware of the time paradox. I have no idea how I was able to serve two places at the same time.
@@ -152,10 +144,6 @@ Episodes marked with checkmark (✓) were seen by me.
I've watched the series years before starting this site, so there are no notes.
Sorry, all I can do here is just an informative but boring list.
-#+attr_shortcode: "st-tng-logo.svg"
-#+begin_st-logo
-The Next Generation
-#+end_st-logo
*** Season One
- S01E01 Encounter at Farpoint (counts as two)[^two-parter] ★ ✓
@@ -626,10 +614,6 @@ If the name is underlined, you can read the notes on the linked page.
Markings:
★ great episode!
-#+attr_shortcode: "st-voy-logo.svg"
-#+begin_st-logo
-Voyager
-#+end_st-logo
*** Season One
- S01E01 Caretaker
diff --git a/content/site/updates/2024/rss-full.md b/content/site/updates/2024/rss-full.md
new file mode 100644
index 0000000..a9a0cd3
--- /dev/null
+++ b/content/site/updates/2024/rss-full.md
@@ -0,0 +1,14 @@
++++
+title = "Full content in RSS"
+author = ["Michał Sapka"]
+date = 2024-03-11T21:43:00+01:00
+categories = ["site"]
+draft = false
+weight = 2001
+abstract = "RSS feed not provides the full content"
++++
+
+A small info: all RSS feed from this site should now rock _full_ content in &lt;description&gt; tag.
+This is exactly correct, as full content goes into &lt;content&gt;, but a lot of RSS readers ignore it.
+
+So, have fun!
diff --git a/content/star-trek/home.md b/content/star-trek/home.md
index b62d788..f3666e2 100644
--- a/content/star-trek/home.md
+++ b/content/star-trek/home.md
@@ -45,10 +45,6 @@ You can follow the journey using [RSS](/st-updates/index.xml)
### The Next Generation {#the-next-generation}
-{{< st-logo "st-tng-logo.svg" >}}
-Voyager
-{{< /st-logo >}}
-
**The** Star Trek.
Gene Roddenberry's vision came to life.
@@ -66,10 +62,6 @@ The Next Generation
### Voyager {#voyager}
-{{< st-logo "st-voy-logo.svg" >}}
-Voyager
-{{< /st-logo >}}
-
I was transferred to Voyager soon after serving on Deep Space Nine&nbsp;[^paradox] and this is my current station. I have to say that the crew is nowhere near as nice as on Enterprise NCC-1701 and our adventures in Delta Quadrant are nowhere near those of Deep Space Nine, but all in all I am very much enjoying my stay here. It won't be the most memorable voyage, but it will be very nice and worth the hustle.
[^paradox]: I am aware of the time paradox. I have no idea how I was able to serve two places at the same time.
diff --git a/content/star-trek/stv/episodes.md b/content/star-trek/stv/episodes.md
index 30f4bed..dffc25b 100644
--- a/content/star-trek/stv/episodes.md
+++ b/content/star-trek/stv/episodes.md
@@ -18,10 +18,6 @@ If the name is underlined, you can read the notes on the linked page.
Markings:
★ great episode!
-{{< st-logo "st-voy-logo.svg" >}}
-Voyager
-{{< /st-logo >}}
-
## Season One {#season-one}
diff --git a/content/star-trek/tng/episodes.md b/content/star-trek/tng/episodes.md
index a7c3c1b..57d23d0 100644
--- a/content/star-trek/tng/episodes.md
+++ b/content/star-trek/tng/episodes.md
@@ -22,12 +22,6 @@ Episodes marked with checkmark (✓) were seen by me.
I've watched the series years before starting this site, so there are no notes.
Sorry, all I can do here is just an informative but boring list.
-<div class="st-logo">
-
-The Next Generation
-
-</div>
-
## Season One {#season-one}
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 64d638a..6e6480b 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -63,8 +63,8 @@
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
- <guid>{{ .Permalink }}</guid>
- <description>{{ .Summary | transform.XMLEscape | safeHTML }}</description>
+ <guid>{{ .Permalink }}</guid>j
+ <description>{{ safeHTML "<![CDATA[" }}{{ replace .Content "\n\n" "\n" | safeHTML }}<p style="font-style:italic">Comment via <a href="https://michal.sapka.me/me/contact/">email</a></p>]]></description>
</item>
{{- end }}
</channel>