Replies: 3 comments 3 replies
-
|
I just realized I can use |
Beta Was this translation helpful? Give feedback.
-
|
This might be more complex than you want, but an alternative is to use a single file (assuming it's not so large that this is impracticable) and use JavaScript to hide/show sections in order to give the appearance of a multi-file site. See https://usp.technology/specification for an example (it's all done with lua filters). |
Beta Was this translation helpful? Give feedback.
-
|
(Of course you can still have your markdown in multiple files (and we do) but they all come together for the pandoc run.) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to build a simple static website with Pandoc-generated HTML files. The site has a main page generated from
index.md. This main page contains links to other pages corresponding to various topics. Here’s a sample of what the markdown looks like:Within the various topic pages, I would like to include citations such as
[@my-citation], which would refer to any one of a number of citations stored in areferences.jsonfile in the root directory.Here’s the catch though, I don’t want to generate a (visible) bibliography in each topic page. I want to generate the bibliography once in
references.html, but have the citations in all the topic pages refer and link to this same bibliography using theieee.cslstyle.I was able to successfully generate a lone bibliography as follows:
pandoc .\references.json --metadata title:References --citeproc -o references.html --csl ieee.csl -f csljson -t htmlHowever I’m not sure how to prevent the bibliography from appearing on each topic page, because using
--bibliography references.jsonand the--citeprocflag will result in a bibliography on the page currently being compiled.Is there a flag or some workaround to prevent the bibliography from appearing in each topic page?
Beta Was this translation helpful? Give feedback.
All reactions