These are notes on how to migrate the different (frankenstein-like) parts of the current AIU Portal based on blogdown and Hugo to a Quarto based version.
- rename all
.md
and all.Rmd
to.qmd
- copy
content/
one level up - review where
_common.R
is really used/needed - top-level setup, not ToC for page, i.e.
toc: false
in_quarto.yml
. BUT it can be enabled locally; maybe useful for Methodology ages. - add
library
as a resource in_quarto.yml
: this is to store the PDF of interesting blibliography works or other materia, typically PDF files. - in Methodology and everywhere: links to images either the markdown way, i.e. remove
knitr::include_graphics()
or remove/images/
- in Methodology main page: remove images from the bullets, too difficult to
port it in Quarto.
Create a directory for every page and move to
index.qmd
with its own images - Acronyms: listing in Quarto can take care of it. TODO: do we want to have the letter of alphabets links?
- Data: embed the params in the YML for the file
- spot use of
@ref()
and substiture with relevant@fig-
/@tbl-
,... - added carousel as from Quarto's Gallery page. It can be changed/improved but minimalistically ok
- images for the carousel should be converted to 11:6 aspect ratio
(you can use
magick convert in.jpg -gravity center -crop 11:6 out.jpg
)
We use many custom (in themes/pru-theme/layout/shortcodes
) and hugo shortcodes,
here is how to migrate them or alternative
solutiuons for where they are used:
a_blank_xyzzy
can be changed toa_blank xyzzy
: we have a new Quarto extensionqlink
with the new definitionattn_i
,csv_i
,..._i
: we use the Quarto extension for fontawesome for the relevant icons in the custom shortcodesrelrel
andrel
: link directly to thexxx.qmd
, see examples inacronym
The various pages are full of