-
This might be a silly question/idea, but anyway here goes: I have blog built with Quarto and served from this repo. Recently, I have also moved my personal website to Quarto, which is served from my root Github Pages repo. I like having separate repos for both sites, but would ideally like to serve the blog as part of my website (like Quarto's blog). So my questions is as follows: Is it possible to build the I guess I could work with git submodules, but have always found them a bit fiddly. Any advice would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Submodules is certainly one way to go (but I agree they are too fiddly) Another would be to implement a shared (i.e. identical looking) Navbar across the site and the blog (this would require two separate publish operations) Yet another would be to use a post-render script on the website (https://quarto.org/docs/projects/quarto-projects.html#pre-and-post-render-scripts) to copy the blog into the |
Beta Was this translation helpful? Give feedback.
-
Does anyone know whether there is a better way to achieve this now? For my use case, I build my personal academic website with quarto and one section is 'Open Source Papers' where I publish quarto versions of my open access papers, code and all. Since quarto renders all from the same virtual environment, this gets unmanageable for each new paper, since I use new and updated versions of packages in new papers. I'd like to be able to have a separate repo for each paper (which is also included in the journal version when published) which renders independently of my website, then can just be pulled in and integrated as a page on the website. Any ideas of the best way to handle this? |
Beta Was this translation helpful? Give feedback.
Submodules is certainly one way to go (but I agree they are too fiddly)
Another would be to implement a shared (i.e. identical looking) Navbar across the site and the blog (this would require two separate publish operations)
Yet another would be to use a post-render script on the website (https://quarto.org/docs/projects/quarto-projects.html#pre-and-post-render-scripts) to copy the blog into the
_site
directory (note you'd probably only want to do the copy whenQUARTO_PROJECT_RENDER_ALL="1"
so it doesn't happen for incremental preview).