From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 gOy/BZzkbmc28AAAe85BDQ:P1 (envelope-from ) for ; Fri, 27 Dec 2024 17:32:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gOy/BZzkbmc28AAAe85BDQ (envelope-from ) for ; Fri, 27 Dec 2024 18:32:12 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JKH5hP6K; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735320732; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RW+evZxzvRfbq7cHHk3xKlIK+mXxY9mckjn8N0NeC2Y=; b=YmxrpZAPV6KnVx3PZFOWu2GINWzf7jdM/Xm6pmNpkl/GIs7kz8XRnTS578vikYUETIWjL5 NpgSGWCqcrW8ZzTm34/kFDqr7PoiXE4kKQZ6WK58bd+lyHrchgO4ITcp/gE/yyfSllcMdq gM2qoRRtuc2pyxRr3PUZPgA2A7blBwdMnRkTwzW8O7TXUjmYy7kLQXPp6BYNusFPDH0rvx JxR45bjs3W4S6zCXzBsLJqkO3QIgTP5s9hz7rTbhsvvix3KQ0EnlFFYQNXpQQ6XwwH4xYM TwD6RNNf834o5zfX3bmLv+ibBmZ7TKak5ivivp8SbnRQEdUARw9VL5ATA1SHyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JKH5hP6K; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735320732; a=rsa-sha256; cv=none; b=hvN13xOdsEabQAaqg0oHA9yZqSHxBUk1k2nctPPiV2K+WJ97FFebJ4hxiEWD4OWHrdZm8z wts+Mue110Ov9LDzNeK4hWJBJS/ZVf8/PJwv97iDkk6vForsdpMaMKx2d7p28IERjQvNBz tapb8ErvfP4AMAEUHY3HP+OrGeoX+ZzwdTex1mL8BzUrcLKH7etMVP5lrQXTFrEEL5/Xbj z41im0spOzLoz7T3OH++YXm4+iHvCv0Bas/9f1z3Aa5ZVJxgDu8X7BtXF09ALhrJ18ScLg UYYVye8khV5cHPFkQv6u7JR3uynMvRdJioVwON/B/xQRfu9gFRb261bEhm9GKw== 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 B84CE862B5 for ; Fri, 27 Dec 2024 18:32:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tREBN-0006y3-Tx; Fri, 27 Dec 2024 12:31:29 -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 1tREBJ-0006xe-Dx for emacs-orgmode@gnu.org; Fri, 27 Dec 2024 12:31:25 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tREBH-0007Rz-E6 for emacs-orgmode@gnu.org; Fri, 27 Dec 2024 12:31:25 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4464D240027 for ; Fri, 27 Dec 2024 18:31:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735320680; bh=Tar+/RwComB6Yv9x6HpItN9RJhzDRJX6BP2hevyDRDM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=JKH5hP6Ky1P20v3vJxRllxb1mny/QSGvRo8JjLaqPefo8GKexiqaJyr2GLh7FipVC LwKb4RlLRnnvxDOxTyIQ3z7UePnZWpWWkTloAosp3SmR+Qa7QSow/s10u0l5FpAAtV pbLByZp4/EqPWzWKdvMyACOIQD+0mSOq+IdHQF9OgzXSDVlg6nw5lB0WQY0S0Yy9NH H7dibtgzEJjTvyFIPux0wnSsIcxwU6OS/DqKOUc+nfpg0lnwbUxrrTXgySPUUIs+3f tm1KtZCnJCYq1Dxkoa9kZAxpv/Kduni3MwrUb0fu5Aemfp/2Fm7IZCIPHRvqMuU1i3 5rlkoTHohpYSQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YKXbW6TwXz6twx; Fri, 27 Dec 2024 18:31:19 +0100 (CET) From: Ihor Radchenko To: Nikolaos Chatzikonstantinou Cc: emacs-orgmode@gnu.org Subject: Re: Some hacks on top of org-publish In-Reply-To: References: <87ikr7zxdj.fsf@localhost> Date: Fri, 27 Dec 2024 17:32:49 +0000 Message-ID: <874j2p58vy.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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-Queue-Id: B84CE862B5 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.89 X-Spam-Score: -3.89 X-TUID: iDhNvD9/Vw3O 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. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at