emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: "Sébastien Gendre" <seb@k-7.ch>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Org-mode publish: Some questions when use it for a blog
Date: Sun, 30 Apr 2023 14:37:18 +0000	[thread overview]
Message-ID: <877cttsag1.fsf@localhost> (raw)
In-Reply-To: <87v8hejr8z.fsf@k-7.ch>

Sébastien Gendre <seb@k-7.ch> writes:

> I try do generate a blog with Org-mode publish. 
>
> I'm very impressed by the publishing tool. But as it's nice to do a
> simple website, I have some difficulties to use it for a blog.

Note that ox-publish is very basic. There is a number of third-party
packages that simplify blog export. For example, ox-hugo. See
https://orgmode.org/worg/org-blog-wiki.html

> First, I try to customize the site map:
>
> * Is it possible to customize the entry without writing a function ?
>   Something like the preamble with escaped chars (ex %t, %d) ?

It must be a function. If someone comes up with a patch for this, it
would also be welcome.

> * How can I set a postamble in the sitemap different from my blog
>   posts ?

Sitemap is exported just as an ordinary .org file within the project.
So, you can, for example, modify sitemap generator function to add
postamble manually and set #+OPTIONS: html-postamble:nil on top to
disable default postamble.

> Secondly, how can I put the author name and publication date just at the
> bottom of the document title ? I tried with preamble, but the preamble
> is inserted before the document that I cannot disable.

May you please elaborate?

> Finally, how can I generate the RSS feed ? I tried with ox-rss, but I
> got an error about my version of Org:
> Error (use-package): ox-rss/:catch: Invalid function: org-assert-version

This indicates an issue with your Org installation. Consider
re-installing Org mode and making sure that you do not put
(require 'org) before setting `load-path'. This issue appear in several
scenarios, depending on the kind of installation method you are using.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


  reply	other threads:[~2023-04-30 14:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-29 21:35 Org-mode publish: Some questions when use it for a blog Sébastien Gendre
2023-04-30 14:37 ` Ihor Radchenko [this message]
2023-05-09  0:27   ` Sébastien Gendre
2023-05-09 12:53     ` Ihor Radchenko
2023-05-10  7:41       ` Christian Moe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877cttsag1.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=seb@k-7.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).