From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YEsDOANcZGebjwAAqHPOHw:P1 (envelope-from ) for ; Thu, 19 Dec 2024 17:46:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YEsDOANcZGebjwAAqHPOHw (envelope-from ) for ; Thu, 19 Dec 2024 18:46:43 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VpYXxbN3; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734630403; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jnvfCh+XiwfreE6oHt0DxxH6i98FI9amqCCcd/XRUcI=; b=KhaA/wWrj4augakwe6d5JKEYy0pv10smUJx1r9RsuSMLuIWR2nhDjLOPY3fEDP+hm6oKa/ Avcj+HQznqB9subuVb47nSUx/LBY+cu1xexnZlbx36G3tXFU86/pK/858t2EeV/tvtBQcF MDlUhwX8YQFrACBJaVSzs6s5BqPdkYRkrP3tmlTayyHr15xEIDxzNzDC7yphpooLaB8H0c mfX1trV+apkciTJPkAAaAJsM+Sal8kl4xGZ9SyRg7BFxab6GxyEwxMEBnXTYK30sDfpZgF xKUWQ0guyozw0MOEgaxm6lNyVZI6pegcXL4q6oig/21oV2YgQ4ziOewmDeHzoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VpYXxbN3; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734630403; a=rsa-sha256; cv=none; b=I7BgDXIyw8OdDD5F5TDamRU5jfw9/eViDgCVepDwqxP2FeM+JqhFWREkHh+ASnuT7dWTFN aZt1ocKER0mTJfO+PAAgqfREDbmI3jJ2PFON/gUlDSTi/CG2Ka9PVO1Gpl+lKXS18VhL54 lss1ag3gk22eRS9DpYUibH6DainKkaZb5Wwi+Cy9bM0G0weEtzU5l5WZN2LA3RWaN6JeLI XJJr/HGSosxg849lFdK5HbdDaxYQDKmlOf65CVxm6+q61Lz/YWjpMwDkJCYv0PKpKdNLeG QaOq8sbv9nv2Qkzg9aYhuKrGTZXPI3r2ABaqWBP668zduiLXnQv5OeXqHiI1yg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D027D5E69E for ; Thu, 19 Dec 2024 18:46:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOKax-0006PC-Tq; Thu, 19 Dec 2024 12:45:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOKaq-0006Gw-89 for emacs-orgmode@gnu.org; Thu, 19 Dec 2024 12:45:49 -0500 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tOKan-00037B-Dr for emacs-orgmode@gnu.org; Thu, 19 Dec 2024 12:45:48 -0500 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-21680814d42so10557465ad.2 for ; Thu, 19 Dec 2024 09:45:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734630342; x=1735235142; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=jnvfCh+XiwfreE6oHt0DxxH6i98FI9amqCCcd/XRUcI=; b=VpYXxbN3oNizZmUkjuT9snGuFST6lP03UKOvI5YW2EIo9fjxE/OJrkt55Lb13sB5Pw NhrQtXuAMPJPXZJ0zhVAdjNMobt1NfI756M4OkHI2HbvDXQRWzL1YS39Vxn8/Uz4Ygav yJJAfNAgbFZcw5SamriJFTmG9LTRC7MfBvzaf3jNAz0HRIbzaI8fcqvUZHc6+IBsrQjN BgsZgcyhEOh+5o4U1ebfyox137VY0+a8syiSKFKDU09NHL3radkc+MxgEq/eA7yWZcHz mYvXdWW2SpJZK/SCUZHheSAg0bYvP6KoiqJRaZjljtSD4UsweaV1pjojogq6bUGXvGQz T7dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734630342; x=1735235142; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jnvfCh+XiwfreE6oHt0DxxH6i98FI9amqCCcd/XRUcI=; b=uCMfKfgCCv8hGYssb2HAzxsBGGmziOai3Iubvt7tTHW/ysFCsAkXOVBll2L9gHHJOg oth/qKm9qrfW+euXqP3PZZX4RY0z+gYJNMA2UcP5KQB7+BpJF1ODsa8+RD2HfKeyfxRS 8VFQJOFEuurfNaPJ4WXtiv0N5zyHx20IRcinZ0vhWVKAQK71VFw4W/yg5/MIyU0OrNJW tPs/I1JFTThRo6Mw4dqxz/dzHd6VgVMsTtyWp/HNKytb06s6uGLNx2OpIjV9NFbb4ePP tGzTBHxINp87AAjcVZvsa9Kduvl1eUkhQ5Y/FidIhFTbvAB410dhO3bYwxoQXSlbWRVB 5H7Q== X-Gm-Message-State: AOJu0YwQ1blsQdWHZH1/9dwF7mB2xz/RrKOBkYA4rWaUEzu2vZu/rCiC UD4/LmqYLk+jsHvGDZCvP2fTyZjDgL75vqNDLiTXF+Q+EW1n6Riw74RDNF5ztnmXaXuBfUu5XyZ e/xIskhXwQIVR49cqxXpM72Cr183+ASqN X-Gm-Gg: ASbGncutjEjWcbej8QM52UyKGAZQO3dm7p9ElBXaoFBs/3IbWYrHJzHXJ+NGE9Ir0TE oFEKQWMT0O5EUdBDDAdz8yP2Bg3ROzJ3IB7E= X-Google-Smtp-Source: AGHT+IH0U8g7z72i0K42MVLD21FfdRIDNfRfK+9wpJtJW18gmSoATj8+wuIyRMHZCvEuYR653x6wj4gxM3uUUdLJCC0= X-Received: by 2002:a17:903:2306:b0:216:4e8d:4803 with SMTP id d9443c01a7336-218d72526c1mr117281845ad.42.1734630341766; Thu, 19 Dec 2024 09:45:41 -0800 (PST) MIME-Version: 1.0 From: Nikolaos Chatzikonstantinou Date: Thu, 19 Dec 2024 12:45:31 -0500 Message-ID: Subject: Some hacks on top of org-publish To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=nchatz314@gmail.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -0.63 X-Spam-Score: -0.63 X-Migadu-Queue-Id: D027D5E69E X-TUID: 2LhWf0vWcMme Hello, I spent the past couple of days hacking together this new blog based on org-publish that I'd like to show you (comments welcome!): Blog: git repo: The highlights are that I got 1) MathJax to work 2) TikZ commutative diagrams to work as SVG files 3) Source code blocks + colors (server-side; not a .js coloring client-side) 4) A nice navigation sidebar 5) I get to preview locally if I want but also I have a GitHub workflow that automatically builds my blog; both views are the same. In this format all I have to do is add .org files under the content/pages/ directory (and .tex files under the content/img/ directory for the commutative diagrams) and run `make` and the static blog is built. I know there's several ways to improve but I want to bring a couple of points where you might be able to help me: 1) I got colors in source blocks by post-processing with node.js + highlight.js the raw HTML. Is it possible to write my own backend that feeds the source block into my node app? 2) I got several issues with how the org files are exported as HTML, for example I may want to insert an
tag, I may want a div around content and a div around nav bar, etc. Not everything can be solved with #+HTML: tags because I don't have precise control of where those go. Can the HTML backend be edited or do I have to write my own backend? 3) I am very inexperienced with org backends. What good resources are out there for this subject? 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 stripped, which leaves me with what I originally wanted! (see ) Regards, Nikolaos Chatzikonstantinou