From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6KX2EbTNcGe+fAAAqHPOHw:P1 (envelope-from ) for ; Sun, 29 Dec 2024 04:19:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 6KX2EbTNcGe+fAAAqHPOHw (envelope-from ) for ; Sun, 29 Dec 2024 05:19:00 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Ij7GGZ8u; 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=1735445940; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=9lvz84RRBiFu4PVXyppIxmQQIrEG9XUaocJ3uyUCTZw=; b=kFtBpyr+UQn869tQ9swQRdQhNIOhl8fN6Ff4DpZ1saArFYuazC6fP0OPHWXuRPHCj5kZK8 EWb+S2Nsk1HTTQTMt3YcXXduMSz7lj0gsro1dEADW1k+Vu+LQq9xEUw+80a+Y8HoTr9q5x WSD/XcwsbYVYuH5lDqVeQ3tNgZ/P+vnmVZOcWiCx7iGDJnPPlKTbofSTrXzZ4ntiHbu1Y2 bizEaF0/t7FOkIPatWx/PtLuTMBLb5aUh5jh6Wn8n1KQGl19WycYo+/KjYXPS20U9hZ+Oz ADnN0SjKRgR7wgIOMp0nDtbWefAJ8nWp783mKrv1JDiNi1tEp+EWyL8+zX9/hw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Ij7GGZ8u; 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=1735445940; a=rsa-sha256; cv=none; b=sJQLcwUejvZeBpBT8D3bnxKND/oJjVmHmle/rDEuQpynF6+aBus4xGeUHrRMEyKGC1iY3V 6SJR84dpEkrJyFeLVVUW+o2gjWf6vYjP+4ZNgxUgYu5lX5OcCN2gqTGZaOuykmtR2jDeBp pegdfTUrAikGYLLFFxXgDLy9uhqJuJjEilmCucrG7vcLDZpLAyvYtdMBlWFRUBut+tIUdj oGDu34FLuhslEPVerOuar2RSckIB5WWCio+HVXEkPS8vTF+5cuRjY+Gc2O0I3xP2j4mzY+ 7zdQI/NMMUo5j67AEwNiW9QaVNP/gFsD4NwHpZ0MF7x723TVMDWjX9zsX5xe4A== 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 E0B7A984AF for ; Sun, 29 Dec 2024 05:18:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRkkk-000301-F7; Sat, 28 Dec 2024 23:18:10 -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 1tRkki-0002zo-Ee for emacs-orgmode@gnu.org; Sat, 28 Dec 2024 23:18:08 -0500 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tRkkg-0001cm-RI for emacs-orgmode@gnu.org; Sat, 28 Dec 2024 23:18:08 -0500 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-2161eb95317so107803745ad.1 for ; Sat, 28 Dec 2024 20:18:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735445885; x=1736050685; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9lvz84RRBiFu4PVXyppIxmQQIrEG9XUaocJ3uyUCTZw=; b=Ij7GGZ8u/lFhxbg8RSg4RiQXvoySA9lGGpbn2hyyVplrxmCl0GoQ0CLSApZ3l/dLqT CzaUvZjgqFxsTiQEMVRujwu/DvaN5YOsxIhYrgFCV7u0WRwuaE4svhbmUwmsEJcpamw7 3aPe5R+0Go3lp8qGw8akyUwpCrhr+x4YL5SLikmfc86cgLa4y3jLKEcL+h+RXUN3TR9a UF24JvLNZZr/3OVGt9FWMqL3q18lG24yGk/Fb91Mk+6b9ngi5F70+ablPBPJVb6ybI2W HdTt3gvi58cqH6vYAaPJ0BXOw53Dp2K+00Tx2Z1bvNRalKxKCAtd13ESC3ToXUioTyTm WyAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735445885; x=1736050685; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9lvz84RRBiFu4PVXyppIxmQQIrEG9XUaocJ3uyUCTZw=; b=LeOIa6rlaFxAAv8HANMAzX+u2ewoqVsvr6QY3r1ZE8HS0ZbpJOXvwIPcPWIaYq+lP0 GXTzoOgUOhfcUwTU/BtFN5IuoWk4to3gOO7RhubofykSXHqV1P2moqaOgQaYFZveTjXr t8BAB/GJxquZdIrXUm5KBXZPGzOcfY2AIsfajMdSVkfWrF6uEFH2L/uHwjsx/+dGBawh v7xsqqvYKlDTKQaZW5mcb3It0p8YAgt02b49eX17xdk3IX3fFFES8YrlQwSXD9TYOyac Ha5ghWSqa39JMKROS85BpdqPSBvJZrDjPGG6HnMCq5bfr3HaHsan6Se/Km74tvI9T9jT dpgA== X-Gm-Message-State: AOJu0YzPYn3xC8Mz9xGhKzeMozlzW97ot3k6vRxnlv2xfc/YZ0bkFJb2 uBDymgmZ8Ye4odOFuqQSnYZBasIKdPpeSGzFWbBANd+EVQ47X9ixNTprAA+Z8LrbEpwrOm9Z5tm oDc9BctXARzd8cBvFHtXN0uqWzlm+rw== X-Gm-Gg: ASbGncv/x4a1pOzFmCypHoKI7zJ1jT0m9kLgoVbnqGdsBDCYqys8MoiPhceMHm+hC+f /cht0RR5soxfjlFdAGXTrGbuxM4GMLcFEAaE= X-Google-Smtp-Source: AGHT+IGuXPTcsFJnLDyICmaN6rJ0te8HLFQiGJIOk+JrbY996f1sXJbxPSQ3ALESRmgvdDVkd+J9RsvfBXIrxKupfy4= X-Received: by 2002:a17:902:d48c:b0:216:5b8b:232c with SMTP id d9443c01a7336-219e6f284efmr424334345ad.54.1735445884566; Sat, 28 Dec 2024 20:18:04 -0800 (PST) MIME-Version: 1.0 References: <87ikr7zxdj.fsf@localhost> <874j2p58vy.fsf@localhost> In-Reply-To: <874j2p58vy.fsf@localhost> From: Nikolaos Chatzikonstantinou Date: Sat, 28 Dec 2024 23:17:53 -0500 Message-ID: Subject: Re: Some hacks on top of org-publish To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=nchatz314@gmail.com; helo=mail-pl1-x62f.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-Spam-Score: -9.47 X-Spam-Score: -9.47 X-Migadu-Queue-Id: E0B7A984AF X-Migadu-Scanner: mx10.migadu.com X-TUID: JX5q30TpfO0G On Fri, Dec 27, 2024 at 12:31=E2=80=AFPM 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 > >> > @@html@@a:@@:@@, only the inner @@a:@@ is recognized and stripped= , > >> > which leaves me with what I originally wanted! (see > >> > ) > >> > >> May you show more concrete example? > >> #+INCLUDE by itself does not remove export snippets. > > > > It must not be #+INCLUDE then, but sitemap.org generation itself, I > > misremembered when I wrote the e-mail. Here's a reproducer, see > > attachment. Have this index.org file in its own directory and publish > > it. Then view public/sitemap.html. You will see that the @@BACKEND:@@ > > stuff has been stripped away in the first sitemap entry instance, > > while in the second it is there. When inspecting the generated > > sitemap.org you will see the following line: > > I see. > What happens here is double export: > 1. The default `org-publish-sitemap-default' first exports the sitemap > items to Org file > 2. The resulting Org file is exported to html > > During the first step, @@html:...@@ is stripped because we export to > org. > > You may want to use a custom :sitemap-function. That makes sense. The org backend strips the HTML backend. You're right, I should be using a custom :sitemap-function (didn't realize there was one). Well, my hack for now remains. I might fix it later down the road. Regards, Nikolaos Chatzikonstantinou