emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: An Org-mode-based blogging engine?


From: Martin Steffen
Subject: Re: An Org-mode-based blogging engine?
Date: Mon, 08 May 2023 12:36:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)


Hi,
>>>>> "Marcin" == Marcin Borkowski <mbork@mbork.pl> writes:

    Marcin> fully Org-mode-based workflow.  Ideally, I'd like to be able
    Marcin> to do everything - including publishing the posts - from
    Marcin> within Emacs.


I use webpage generation (including blogs) using Jekyll. Since I wanted
to stick to org, all is set-up in a way, that the ``content'' including
the blogs is done in org, and then do ``org-publish'' to generate stuff
as fit for consumption for jekyll and the workflow then continues from
there (basically just invoking jekyll to ``publish'' the stuff). jekyll
expects its content in md, but I feel more comfortable with org.

That leads to a two stage thing: first translate org to md (by an
appropriate org-publish set-up) and then generate the web-page from the
md-files. So it's not all org-workflow, but once it's set-up, it's
basically only org as far as content is concerned.


Fine points apply, as jekyll has a lot of moving parts and
configurations. And possible pictures and graphics etc. is also not ``in
org''- And actually, the org-files I am using have some jekyll-specific
md-prefix between

+begin_export markdown
+end_export

to tweak things for jekyll. But the org-part is easy, and for me it
works smooth. 


In a different response, HUGO was mentioned. I don't have experience
with HUGO, but it's probably comparable to jekyll.

Martin






    Marcin> I know about things like "Org publish" and ox-hugo, though I
    Marcin> never used them - and there are probably others - but I'm
    Marcin> asking specifically about two things:

    Marcin> A. other people's experiences with similar workflows, and
    Marcin> B. tool/workflow recommendations.

    Marcin> Here are my requirements, in no particular order.

    Marcin> 1. I want the blog to be fully static HTML+CSS, with a tiny
    Marcin> sprinkling of (my custom) JS.

    Marcin> 2. I want to publish a whole set of HTML files from a single
    Marcin> Org mode file.  I will need to preserve internal links (so
    Marcin> that I can link to another headline and the result will be
    Marcin> one post linking to another), and of course I will need
    Marcin> external links.  The blog will live on some server I will
    Marcin> have ssh access to, so for publishing it should be enough to
    Marcin> scp some files somewhere.

    Marcin> 3. I want to be able to fully customize the HTML produced.
    Marcin> I want it to be as simple as possible (but see below).  I
    Marcin> will also need it to be put in some kind of a template, so
    Marcin> that every page will contain things like a header, footer
    Marcin> and a sidebar.

    Marcin> 4. I am going, though, to need some custom "blocks" - in
    Marcin> HTML parlance, <div>s and possibly also <span>s.  I want to
    Marcin> be able to mark them up somehow in my Org source and get
    Marcin> <div class="..."> and <span class="...">.  Reusing existing
    Marcin> markup (like _underline_, which I'm not going to use) is not
    Marcin> enough - I will need more than a dozen of those custom
    Marcin> classes.

    Marcin> Any thought, suggestions, recommendations?

    Marcin> -- Marcin Borkowski http://mbork.pl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]