diff --git a/docs/guide/extending-default-theme.md b/docs/guide/extending-default-theme.md index 3dda161d..c7459923 100644 --- a/docs/guide/extending-default-theme.md +++ b/docs/guide/extending-default-theme.md @@ -72,14 +72,16 @@ export default { const myFontFile = assets.find(file => /font-name\.\w+\.woff2/) if (myFontFile) { return [ - 'link', - { - rel: 'preload', - href: myFontFile, - as: 'font', - type: 'font/woff2', - crossorigin: '' - } + [ + 'link', + { + rel: 'preload', + href: myFontFile, + as: 'font', + type: 'font/woff2', + crossorigin: '' + } + ] ] } }