Hugo Site Structure
├── content/
└── posts/
└── my-analysis/
└── index.qmd
The Quarto metadata should include at least format: hugo-md.
Render documents using Quarto:
quarto render content/posts/my-analysis/index.qmd
This will create index.md.
Then I’d erase the Quarto metadata in index.md and manually write the rendered HUGO metadata (This is the part that bugs me the most and is more error-prone).
Then as usual:
hugo server --noHTTPCache --renderToMemory --disableFastRender --ignoreCache --gc --logLevel debug -e development -D
This pipeline works, but I’d call it more like a workaround. Does anyone have or know a better way to achieve this?
generate a final md file from the generated one using hugo template or content adapter
└── my-analysis/
└── quarto
└── index.qmd
└── index.md <-- generated by quarto
_content.gotmpl <-- use stuff in quarto folder to build up a new page
# OR
_index.md <-- special layout that uses the quarto folder to render
you could warn or break the build if the *.qmd file is newer than the *.md file (eg. gitInfo)
Hugos build options combined with cascade and mounts could be helpful instead of global exclude
This will offer to use resources and turn of render to public selective
Usually a runnable example repo will help to understand your steps incl. input and outputs.
You could create a small repo showcase that contains:
one notebook source before the quarto call
the output generated by quarto
the files before and after your manual changes
all wrapped to a working Hugo site so we have no need to install Jupyter and Quarto.
You are giving me a good set of ideas I haven’t thought of; and I know I won’t be able to implement, test and and summarize/reply within the time frame of the forum limit:
This topic will close 2 days after the last reply.
So I’m marking it as solved in case I don’t get the chance later .
Would be cool to use web-native charts (e.g. d3.js) where possible, how close are we to having easy ways to transpile (or replace) plotting libraries designed for ‘print’ (e.g. matplotlib etc) into web-native graphical formats?