Re: Some hacks on top of org-publish

2025-03-16 Thread Ihor Radchenko
Nikolaos Chatzikonstantinou writes: > org-publish (or is it org-html?) should just structure the HTML > document properly, as there is already an element, and even if > those semantic elements are not used, at least if the 's of the > various parts of the page are placed sequentially one should

Re: Some hacks on top of org-publish

2025-03-16 Thread Ihor Radchenko
Nikolaos Chatzikonstantinou writes: > #+begin_src elisp > (defun blorg-html-italic (_italic contents info) > "Transcode ITALIC from Org to HTML for a blog. > Italicize if in title, otherwise emphasize." > (format >(or (cdr (assq 'italic (plist-get info :html-text-markup-alist))) "%s") >

Re: Some hacks on top of org-publish

2025-02-24 Thread Nikolaos Chatzikonstantinou
On Sat, Feb 22, 2025 at 11:51 PM Nikolaos Chatzikonstantinou wrote: > > On Mon, Dec 30, 2024 at 1:12 PM Ihor Radchenko wrote: > > > > Nikolaos Chatzikonstantinou writes: > > > > > ... I got inspired by Worg's website > > > which does not do any backend hacking as far as I can tell, but > > > ins

Re: Some hacks on top of org-publish

2025-02-22 Thread Nikolaos Chatzikonstantinou
On Mon, Dec 30, 2024 at 1:12 PM Ihor Radchenko wrote: > > Nikolaos Chatzikonstantinou writes: > > > ... I got inspired by Worg's website > > which does not do any backend hacking as far as I can tell, but > > instead puts some javascript to collapse the table of contents. > > WORG does not use JS

Re: Some hacks on top of org-publish

2025-01-04 Thread Nikolaos Chatzikonstantinou
On Sat, Jan 4, 2025 at 10:39 AM Max Nikulin wrote: > > On 29/12/2024 11:26, Nikolaos Chatzikonstantinou wrote: > > I should probably try to do this, but I got inspired by Worg's website > > which does not do any backend hacking as far as I can tell, but > > instead puts some javascript to collapse

Re: Some hacks on top of org-publish

2025-01-04 Thread Max Nikulin
On 29/12/2024 11:26, Nikolaos Chatzikonstantinou wrote: I should probably try to do this, but I got inspired by Worg's website which does not do any backend hacking as far as I can tell, but instead puts some javascript to collapse the table of contents. Not all users are happy with current CSS

Re: Some hacks on top of org-publish

2024-12-30 Thread Ihor Radchenko
Nikolaos Chatzikonstantinou writes: > ... I got inspired by Worg's website > which does not do any backend hacking as far as I can tell, but > instead puts some javascript to collapse the table of contents. WORG does not use JS. The TOC is implemented using pure CSS. > Do you have a particular

Re: Some hacks on top of org-publish

2024-12-28 Thread Nikolaos Chatzikonstantinou
On Wed, Dec 25, 2024 at 8:47 AM Ihor Radchenko wrote: > > Nikolaos Chatzikonstantinou writes: > > > 3) Source code blocks + colors (server-side; not a .js coloring client-side) > > Note that ox-html can fontify src blocks by itself. Via htmlize + CSS styles. > > > 1) I got colors in source blocks

Re: Some hacks on top of org-publish

2024-12-28 Thread Nikolaos Chatzikonstantinou
On Fri, Dec 27, 2024 at 12:31 PM Ihor Radchenko wrote: > > Nikolaos Chatzikonstantinou writes: > > >> > Finally a highlight of the hacks I had to pull off: apparently > >> > #+INCLUDE: will strip away inline backend information such as > >> > @@html:@@. I figured out that if I write something lik

Re: Some hacks on top of org-publish

2024-12-27 Thread Ihor Radchenko
Nikolaos Chatzikonstantinou writes: >> > Finally a highlight of the hacks I had to pull off: apparently >> > #+INCLUDE: will strip away inline backend information such as >> > @@html:@@. I figured out that if I write something like >> > @@html@@a:@@:@@, only the inner @@a:@@ is recognized and str

Re: Some hacks on top of org-publish

2024-12-26 Thread Nikolaos Chatzikonstantinou
On Wed, Dec 25, 2024 at 8:47 AM Ihor Radchenko wrote: > > Nikolaos Chatzikonstantinou writes: > > > Finally a highlight of the hacks I had to pull off: apparently > > #+INCLUDE: will strip away inline backend information such as > > @@html:@@. I figured out that if I write something like > > @@ht

Re: Some hacks on top of org-publish

2024-12-25 Thread Ihor Radchenko
Nikolaos Chatzikonstantinou writes: > 3) Source code blocks + colors (server-side; not a .js coloring client-side) Note that ox-html can fontify src blocks by itself. Via htmlize + CSS styles. > 1) I got colors in source blocks by post-processing with node.js + > highlight.js the raw HTML. Is i