* Front Matter from md to html @ 2022-05-25 7:13 Marcus Rohrmoser [not found] ` <78E2A0F6-02FD-43AD-8F09-03B3441CBFF8-cOhbpZe5kZ8@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Marcus Rohrmoser @ 2022-05-25 7:13 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw I have pandoc generating the html body for https://mro.name/wiki and would like to transfer some front matter to the head. How would one extract front-matter from md and turn into e.g. <meta name="keywords" …>? -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/78E2A0F6-02FD-43AD-8F09-03B3441CBFF8%40mro.name. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <78E2A0F6-02FD-43AD-8F09-03B3441CBFF8-cOhbpZe5kZ8@public.gmane.org>]
* Re: Front Matter from md to html [not found] ` <78E2A0F6-02FD-43AD-8F09-03B3441CBFF8-cOhbpZe5kZ8@public.gmane.org> @ 2022-05-25 7:46 ` Bastien DUMONT 2022-05-25 10:05 ` Marcus Rohrmoser 0 siblings, 1 reply; 3+ messages in thread From: Bastien DUMONT @ 2022-05-25 7:46 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Is there a reason you don't use the YAML header for that? ``` --- keywords: - first - second --- Content ``` Then you can add to your template (copied from the default template): ``` $if(keywords)$ <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" /> $endif$ ``` Le Wednesday 25 May 2022 à 09:13:20AM, Marcus Rohrmoser a écrit : > I have pandoc generating the html body for https://mro.name/wiki and would > like to transfer some front matter to the head. > > How would one extract front-matter from md and turn into e.g. <meta > name="keywords" …>? > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/78E2A0F6-02FD-43AD-8F09-03B3441CBFF8%40mro.name. -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/Yo3e1RpzbXF6u3cp%40localhost. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Front Matter from md to html 2022-05-25 7:46 ` Bastien DUMONT @ 2022-05-25 10:05 ` Marcus Rohrmoser 0 siblings, 0 replies; 3+ messages in thread From: Marcus Rohrmoser @ 2022-05-25 10:05 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw On 25 May 2022, at 9:46, Bastien DUMONT wrote: > Is there a reason you don't use the YAML header for that? It didn't occur to me to patch the template! Uh. This looks perfectly doable, thanks and solves 75% of my use case. For more post-processing (updating tag index pages etc.) I can inspect the html result. Thanks! ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-25 10:05 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-05-25 7:13 Front Matter from md to html Marcus Rohrmoser [not found] ` <78E2A0F6-02FD-43AD-8F09-03B3441CBFF8-cOhbpZe5kZ8@public.gmane.org> 2022-05-25 7:46 ` Bastien DUMONT 2022-05-25 10:05 ` Marcus Rohrmoser
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).