From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uOVwCgDs3F+uWAAA0tVLHw (envelope-from ) for ; Fri, 18 Dec 2020 17:50:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IGIsBgDs3F+7LAAAbx9fmQ (envelope-from ) for ; Fri, 18 Dec 2020 17:50:56 +0000 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 9E7FB9402A5 for ; Fri, 18 Dec 2020 17:50:55 +0000 (UTC) Received: from localhost ([::1]:48402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqJu1-0006XO-Vh for larch@yhetil.org; Fri, 18 Dec 2020 12:50:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqJsu-0006W3-KB for emacs-orgmode@gnu.org; Fri, 18 Dec 2020 12:49:44 -0500 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]:45363) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqJst-0005Ng-4f for emacs-orgmode@gnu.org; Fri, 18 Dec 2020 12:49:44 -0500 Received: by mail-qv1-xf2c.google.com with SMTP id a4so965525qvd.12 for ; Fri, 18 Dec 2020 09:49:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=foC2XP7CyaCMkISZt2F5Tlsr0nARvBlxM84j/1NDQbI=; b=LAyFd48RbXT4NF9tB/o4lCQcp9nI9GUILsouID7VVKfU0yOCkWoTHd821GnhZmHYZj jINxbAa2iRS2E5o1erHwz8/FPSK5Ze9eWOi530xW1RSSYXLz1cVMHNXCF5XmCQhr3t/R npmSfE7QyS0/83aFd+DMRm6IchS6ik5rWNq2yWt5AbHpH1w6RynZMNE1b2aCQFuuP1R8 US404/kn7hpaTC8p+zQRRRmKPvFQzEs77DYuHmkQs9HnQ0kR5jKw67JqzvesaQh4p/V2 DGlXSLp6lPb0Rke6Dl8XE5DOQRy7qGOJOUZ6qqKziq6mT8kKmTbm8TAHppA26xo40Bp4 J9Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=foC2XP7CyaCMkISZt2F5Tlsr0nARvBlxM84j/1NDQbI=; b=CR+jAQlxAc43cSoP/eLjpi4RMnIOm+GpSRSRdmjAQIv8UjnvtlDdkP9sq9bnjHwbPp c5ymO4d4sxdeGswtEuRJyPAxsNZGXckpAUGf9zHuUojKsOu8Y4fCkX6VVGdqCkWeW/Ac i9f8GMvYvdDP0Edhdg0t6KvjPuLycprDpxJocfMXiCeSG/fgHy7bXLRIttIik3f5/lS6 5X3PLHswmBGNn6Wz9daZykp56KZw69TsSYYcTcvjQ/E87M3Vz/q3skOHTJGK/yNCvz/r bShvm8Z56nqz6UC/70Vlkmt0RGqTbDxLKBc+yBG6BgfeTg7g9+A9Me3NlX+mC2YlFoMM 0zWw== X-Gm-Message-State: AOAM531eICGqNsOw+6Kma8RXXaMCI2jq3HyBMPLkhPuiuz+deHuKIKDy qX+P8P79sCScccGrcwVN9tgRR7cTnEE= X-Google-Smtp-Source: ABdhPJyA1fEWuDfX4bPv0Bw3HPTg3BZZdFNXcMQX7P3XiuywFp8b6qyvmRCHrIDCwibaNVhWW9HRMQ== X-Received: by 2002:ad4:5904:: with SMTP id ez4mr5667040qvb.30.1608313781407; Fri, 18 Dec 2020 09:49:41 -0800 (PST) Received: from [192.168.0.115] (104-182-91-49.lightspeed.brhmal.sbcglobal.net. [104.182.91.49]) by smtp.googlemail.com with ESMTPSA id 9sm6208292qke.123.2020.12.18.09.49.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Dec 2020 09:49:40 -0800 (PST) To: emacs-orgmode@gnu.org From: m27315 Subject: expand global macros in HTML_HEAD and HTML_HEAD_EXTRA during html export Message-ID: Date: Fri, 18 Dec 2020 11:49:39 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/html; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::f2c; envelope-from=m27315@gmail.com; helo=mail-qv1-xf2c.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 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, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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-Spam-Score: -2.72 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=LAyFd48R; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 9E7FB9402A5 X-Spam-Score: -2.72 X-Migadu-Scanner: scn0.migadu.com X-TUID: YWx51orAN70P

Is it possible to use the global predefined macros in the HTML_HEAD and HTML_HEAD_EXTRA entries? 

Currently, in my org file, I have:

#+HTML_HEAD: <meta http-equiv="date" content="{{{date(%a %d %b %Y %H:%M:%S %Z)}}}" />
#+HTML_HEAD_EXTRA: <meta http-equiv="last-modified" content="{{{modification-time(%a %d %b %Y %H:%M:%S %Z)}}}" />

However, these predefined macros are not expanded.  So, in my exported HTML, I see:

<head>
...
<meta http-equiv="date" content="{{{date(%a %d %b %Y %H:%M:%S %Z)}}}" />
<meta http-equiv="last-modified" content="{{{modification-time(%a %d %b %Y %H:%M:%S %Z)}}}" />
...
</head>

I am expecting to see something more like:

<head>
...
<meta http-equiv="date" content="Sun 16 Feb 2020 14:07:02 CDT" />
<meta http-equiv="last-modified" content="Fri 18 Dec 2020 11:48:01 CST" />
...
</head>

Any suggestions how to force these to be evaluated in the HTML_HEAD and HTML_HEAD_EXTRA entries for html export?

Thanks!