From 72cb339d10c9e66a2096ab488b4becad5fc5e87f Mon Sep 17 00:00:00 2001 From: Sebastien Chopin Date: Mon, 21 Aug 2017 11:38:30 +0200 Subject: [PATCH] Update spa example to use meta tags --- examples/spa/nuxt.config.js | 14 ++++++++++++++ examples/spa/static/favicon.ico | Bin 0 -> 1150 bytes 2 files changed, 14 insertions(+) create mode 100644 examples/spa/static/favicon.ico diff --git a/examples/spa/nuxt.config.js b/examples/spa/nuxt.config.js index 0c0d888faf..e69c605f2a 100644 --- a/examples/spa/nuxt.config.js +++ b/examples/spa/nuxt.config.js @@ -5,6 +5,20 @@ module.exports = { */ mode: 'spa', /* + ** Headers of the page (works with SPA!) + */ + head: { + title: 'SPA mode with Nuxt.js', + meta: [ + { charset: 'utf-8' }, + { name: 'viewport', content: 'width=device-width, initial-scale=1' }, + { hid: 'description', name: 'description', content: '{{ description }}' } + ], + link: [ + { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } + ] + }, + /* ** Add css for appear transition */ css: ['~/assets/main.css'], diff --git a/examples/spa/static/favicon.ico b/examples/spa/static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..382fecbbf96d6e1e614e0e2cc8b73e355bd946cc GIT binary patch literal 1150 zcmZQzU<5(|0R|wcz>vYhz#zuJz@P!dKp~(AL>x#lFaYI-8)(_-RMWh}@jndLuXgyK z;A{Fn&J#OMi823Q&|nS5g-td!^Y-RSMpI2!G(|^BVz5@p+ zJll3Uhal^3+~)80K_I1H1Blkn|X#f`-nA@7V7^0XJCNg21cM?f%pJ31V3PB ZU;yC{{0s~~