emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-rss feed title is concatenation of all post titles? (ECM included)
@ 2020-04-12 13:40 Stig Brautaset
  2020-04-12 14:17 ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Stig Brautaset @ 2020-04-12 13:40 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I'm using org-rss.el to generate an RSS feed for my blog. I use a
separate file, ~feed.org~, which uses ~#+include:~ to source entries.
This works well for each item in the feed, but not for the main feed
title and feed image title, which appears to be a concatenation of the
feed and all the titles in all the items.

If I export RSS for the below ~feed.org~, the RSS title becomes:

: <title>The Feed Title Title of first post Title of second post</title>

However I *expect* it to be just:

: <title>The Feed Title</title>

The feed image title also is similarly affected:

#+begin_src xml
  <image>
    <url>https://orgmode.org/img/org-mode-unicorn-logo.png</url>
    <title>The Feed Title Title of first post Title of second post</title>
    <link></link>
  </image>
#+end_src



Below is the Org files used in this example.

feed.org:

#+begin_src org
,#+title: The Feed Title
,* First Post
:PROPERTIES:
:RSS_PERMALINK: first-post.html
:END:
,#+include: first-post.org
,* Second Post
:PROPERTIES:
:RSS_PERMALINK: second-post.html
:END:
,#+include: second-post.org
#+end_src

first-post.org:

#+begin_src org
,#+title: Title of first post
First post content.
#+end_src

second-post:

#+begin_src org
,#+title: Title of second post
Second post content.
#+end_src


Software Versions:

- macOS 10.15.3
- Org mode version 9.3.2 (9.3.2-24-g5c72d6-elpaplus @ /Users/stig/.emacs.d/elpa/org-plus-contrib-20200203/)
- GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109)) of 2019-09-02


Regards,
Stig


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-rss feed title is concatenation of all post titles? (ECM included)
  2020-04-12 13:40 org-rss feed title is concatenation of all post titles? (ECM included) Stig Brautaset
@ 2020-04-12 14:17 ` Nicolas Goaziou
  2020-04-12 21:43   ` Stig Brautaset
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2020-04-12 14:17 UTC (permalink / raw)
  To: Stig Brautaset; +Cc: emacs-orgmode

Hello,

Stig Brautaset <stig@brautaset.org> writes:

> I'm using org-rss.el to generate an RSS feed for my blog. I use a
> separate file, ~feed.org~, which uses ~#+include:~ to source entries.
> This works well for each item in the feed, but not for the main feed
> title and feed image title, which appears to be a concatenation of the
> feed and all the titles in all the items.

Indeed. According to the manual, in (info "(org)Export settings")

  ‘TITLE’
       Org displays this title.  For long titles, use multiple ‘#+TITLE’
       lines.

Multiple TITLE keywords are concatenated to create a document title.


Regards,

-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-rss feed title is concatenation of all post titles? (ECM included)
  2020-04-12 14:17 ` Nicolas Goaziou
@ 2020-04-12 21:43   ` Stig Brautaset
  2020-04-12 22:23     ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Stig Brautaset @ 2020-04-12 21:43 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Indeed. According to the manual, in (info "(org)Export settings")
>
>   ‘TITLE’
>        Org displays this title.  For long titles, use multiple ‘#+TITLE’
>        lines.
>
> Multiple TITLE keywords are concatenated to create a document title.

Doh! Thanks for that. I tried working around this behaviour ~:lines
"1-"~, to skip the included file's #+title line, but that didn't seem to
work either. E.g. like this:

: #+include: first-post.org :lines "1-"

Regards,
Stig


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-rss feed title is concatenation of all post titles? (ECM included)
  2020-04-12 21:43   ` Stig Brautaset
@ 2020-04-12 22:23     ` Nicolas Goaziou
  2020-04-13  9:54       ` Stig Brautaset
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2020-04-12 22:23 UTC (permalink / raw)
  To: Stig Brautaset; +Cc: emacs-orgmode

Stig Brautaset <stig@brautaset.org> writes:

> Doh! Thanks for that. I tried working around this behaviour ~:lines
> "1-"~, to skip the included file's #+title line, but that didn't seem to
> work either. E.g. like this:
>
> : #+include: first-post.org :lines "1-"

Doesn't "1-" mean the whole document?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-rss feed title is concatenation of all post titles? (ECM included)
  2020-04-12 22:23     ` Nicolas Goaziou
@ 2020-04-13  9:54       ` Stig Brautaset
  2020-04-13 16:19         ` Nick Dokos
  0 siblings, 1 reply; 7+ messages in thread
From: Stig Brautaset @ 2020-04-13  9:54 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Stig Brautaset <stig@brautaset.org> writes:
>
>> Doh! Thanks for that. I tried working around this behaviour ~:lines
>> "1-"~, to skip the included file's #+title line, but that didn't seem to
>> work either. E.g. like this:
>>
>> : #+include: first-post.org :lines "1-"
>
> Doesn't "1-" mean the whole document?

...

Yeees, it does. And using 2- makes it work as I expect. 


PS: Can we pretend this whole thread didn't happen? :-)

Regards,
Stig


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-rss feed title is concatenation of all post titles? (ECM included)
  2020-04-13  9:54       ` Stig Brautaset
@ 2020-04-13 16:19         ` Nick Dokos
  2020-05-21  7:36           ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Dokos @ 2020-04-13 16:19 UTC (permalink / raw)
  To: emacs-orgmode

Stig Brautaset <stig@brautaset.org> writes:

> ...
> PS: Can we pretend this whole thread didn't happen? :-)
>

What thread?

-- 
Nick:-)

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-rss feed title is concatenation of all post titles? (ECM included)
  2020-04-13 16:19         ` Nick Dokos
@ 2020-05-21  7:36           ` Bastien
  0 siblings, 0 replies; 7+ messages in thread
From: Bastien @ 2020-05-21  7:36 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

Nick Dokos <ndokos@gmail.com> writes:

> What thread?

;)

-- 
 Bastien


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-05-21  7:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-12 13:40 org-rss feed title is concatenation of all post titles? (ECM included) Stig Brautaset
2020-04-12 14:17 ` Nicolas Goaziou
2020-04-12 21:43   ` Stig Brautaset
2020-04-12 22:23     ` Nicolas Goaziou
2020-04-13  9:54       ` Stig Brautaset
2020-04-13 16:19         ` Nick Dokos
2020-05-21  7:36           ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).