Closed samanthacsik closed 1 year ago
Great news - note from Carlos Scheidegger:
I don't think you're far off from what will be required, but I want to note at least one thing:
the image field supports "project" paths. If you write (for example) image: /static/img/blog/2022-afsc-zoom-square.png
, then quarto should be able to find that image, assuming that there exists a static/img/blog
folder at the project top-level
New posts can use the relative path syntax if you'd prefer, but this would simplify porting the existing old posts, since "all" you have to do is read the YAML, and replace banner: X
with image: /X
(if that makes sense)
Linked this issue for reference in the Adding blog posts wiki and closing it here to clean up issues
This is so huge, congrats Sam! 🎉
I have no idea exactly how to automate porting blog posts from the blogdown site to the new quarto framework, but here's where things currently live/look like in the blogdown framework & how they need to be set up in the quarto framework:
Comparing frameworks
Blogdown
. md
files all in one directory (content/blog
)static/img/blog
Quarto
/blog
directory; each post is namedindex.qmd
file in individual folders inside/blog
(e.g.blog/yyyy-mm-dd-my-blog/index.qmd
)Brainstorming how to do this:
I think a bash script may be the way to go? (TODOs are not necessarily listed in order)
For each
.md
file, create a folder insideblog/
-- this requires:.md
file name?)Create an
index.qmd
file inside the foldertouch index.qmd
Create yaml for reach
index.qmd
file -- most yaml options will remain the same, though the following need to be updated/changed:title
,date
,author
categories
&tags
from blogdown yaml; put all undercategories
option in quarto yamlbanner
>image
slug
> none (but will probably be useful to creating redirects?)Copy over body of blog
Pull images from
static/img/blog
and add to folder with corresponding blog postgrep 'png\|jpg' fileName_or_filePath
)static/img/blog
(potentially helpful resource) & paste them into folder