From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +Kt8B3EB22JSIwEAbAwnHQ (envelope-from ) for ; Fri, 22 Jul 2022 21:58:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MP1sBnEB22I5agEAG6o9tA (envelope-from ) for ; Fri, 22 Jul 2022 21:58:41 +0200 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 8A9C421A84 for ; Fri, 22 Jul 2022 21:58:40 +0200 (CEST) Received: from localhost ([::1]:38472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEynH-0000Lw-Dj for larch@yhetil.org; Fri, 22 Jul 2022 15:58:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEymO-0000Il-AG for emacs-orgmode@gnu.org; Fri, 22 Jul 2022 15:57:44 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:58122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEymL-0004mI-RY for emacs-orgmode@gnu.org; Fri, 22 Jul 2022 15:57:43 -0400 Received: from 194-18-252-127-no2005.tbcn.telia.com ([194.18.252.127] helo=localhost) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oEymG-0004KL-Pg; Fri, 22 Jul 2022 15:57:36 -0400 References: User-agent: mu4e 1.6.10; emacs 28.0.90 From: Hanno Perrey To: Benoit Bidoggia Cc: emacs-orgmode@gnu.org Subject: Re: Publishing a project and selecting files (possibly with tags) Date: Fri, 22 Jul 2022 21:32:02 +0200 In-reply-to: Message-ID: <87v8roncnk.fsf@hoowl.se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=104.248.1.95; envelope-from=hanno@hoowl.se; helo=minsky.hcoop.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658519920; 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; bh=WCrH1rJG7ROfPFEj2itXn1zRR3rK3agllMocb+no8PE=; b=QU6lUIWPcc67TF2RWQVNtM0ZH8/DLkorHrjCSBjSkA4wAhBYyE64CPE4eBSVaqKtc2wFPz MfYlUlloglKqioWznDexHeoT8Irev1mFC8ren1cWHqPmnJ57mNNaoe/7elmHzb/0NzSZK1 Li5xJ9WOb7TniFXfke0B0L3pLrNhYhdKE/i+ltP7k48uXPiEOxg7xar5u7OFcid3ue8/VJ y4tQXZ+rV2I7Jfu0ziKplAOIz8921w0y7Yzi0aLJQt+HMUuVV50e1MZPpZI+IJ43SJAb/x tsufaTsJ/oloGoLtRrfG7zBu2C8tgIaemJobHSEX/AFn3jtQ8bVx4Y5aqXnA7Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658519920; a=rsa-sha256; cv=none; b=jMGwfo+ZnR1MGraLQP2kyjLlN1HzjcmEHTEzVovHuIcpRwsFJpV2mSoPE+EY1NBs4VsEHz dI93SLqWivO2UUf+aAmOZqcagCOv/TM32eWF6BYklzof0h04oY6qu7zp5SkxUcJm+qsLKI eOjbic8jjaud8vePOieXl+Zfk2NuMxwYvwxjaOXtX8qhxkj8wlUWLzcyfHkVFrf5OCrisA TigjNNLl8K8S0ljhxeZJvWcwcUfE/oChSRLo7PZN6uEH0K3xiS940T6jaOVzsVbvqUAQhf KSlIPAcVBerN+sMXA4AltkZuBpb6CSAL0Q7szOgqP5N35HPAwNN/ngbT0topnA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Spam-Score: -2.53 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Queue-Id: 8A9C421A84 X-Spam-Score: -2.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: WRb9WvwLbrxF Dear Benoit, this does sound like what I have done for my blog: I write all blog posts as org files in a single directory called "posts" and publish them through org-publish. In each file, I define tags via the =3DFILETAGS=3D keyword. Upon publishing, I set =3D:sitemap-format-entry=3D in =3Dorg-publish-project-alist=3D to a custom function which creates new org files corresponding to the tags being used in the posts. These org files are then published as well, giving me a sitemap with all posts and a sitemap for each individual tag (with short teaser text). This is not exactly what you asked for and maybe not as straightforward as what you envisioned, but I think that you could customize this approach to fit your use case. The code for my blog is available here: https://gitlab.com/hperrey/hoowl_bl= og (Please note that I copied it together from various sources back when without always understanding every detail and I am afraid that it shows.) The resulting html you can find here: https://www.hoowl.se Let me know should you have questions concerning the code! Best wishes, Hanno Benoit Bidoggia writes: > Dear list, > > This is my problem: I have a large set of org files (created with > org-roam), which contains all my thoughts on different topics (for > example "work1", "work2", "personal1"...) > > I would like to create different projects (for example "work1", > "work2", "personal1") to be able to publish these files under > different folders (for example "./pub_work1", "./pub_work2", > "./pub_personal1") for which I could define some filters to decide > what goes where. > > The rules should be something likes this: > - nothing is exported, except that > - files with tag "WORK1" are exported in "./pub_work1" > - files with tag "WORK2" are exported in "./pub_work2" > - files with tag "PERSONAL1" are exported in "./pub_personal1" > > I cannot use the file name to filter the files, which seems to exclude > the possibility of using the options ":exclude" and ":include" of > org-publish-project-alist. > > Ideally I would like to use tags (or some descriptors I can include > directly in the org file), but I did not have much success using the > options ":with-tags" or ":select-tags". > > Can this be done? If so, how? > > Thank you very much, best regards. > Beno=C3=AEt -- Hanno Perrey https://hoowl.se