return function(props) local use_cdn = reluax.dev_mode == false local asset_prefix = use_cdn and "https://cdn.duckonaut.dev" or "" local thumbnail = props.attrs.thumbnail or asset_prefix .. "/assets/images/thumbnail.png" local title = props.attrs.title or "duckonaut.dev" local description = props.attrs.description or "duckonaut's stuff" local stylesheelts = props.attrs.stylesheets or { 'app.css', 'index.css', 'contact.css', 'project.css', 'navbar.css', 'carousel.css', 'blog.css' } local scripts = props.attrs.scripts or { 'index.js' } local style_tags = {} for _, stylesheet in ipairs(stylesheelts) do style_tags[#style_tags + 1] = end local script_tags = {} for _, script in ipairs(scripts) do script_tags[#script_tags + 1] = end return
{$ script_tags $} {$ style_tags $}