From bacac23d03f3ce5076c53b353c1adc4155595914 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 6 Nov 2017 10:30:37 +0800 Subject: [PATCH] refactor: documentation and adjust example name --- examples/head-elements/README.md | 3 --- examples/meta-info/README.md | 13 +++++++++++++ .../components/twitter-head-card.vue | 0 .../{head-elements => meta-info}/nuxt.config.js | 0 examples/{head-elements => meta-info}/package.json | 0 .../{head-elements => meta-info}/pages/about.vue | 0 .../{head-elements => meta-info}/pages/index.vue | 0 .../{head-elements => meta-info}/static/about.js | 0 .../{head-elements => meta-info}/static/body.js | 0 .../{head-elements => meta-info}/static/defer.js | 0 .../{head-elements => meta-info}/static/head.js | 0 11 files changed, 13 insertions(+), 3 deletions(-) delete mode 100644 examples/head-elements/README.md create mode 100644 examples/meta-info/README.md rename examples/{head-elements => meta-info}/components/twitter-head-card.vue (100%) rename examples/{head-elements => meta-info}/nuxt.config.js (100%) rename examples/{head-elements => meta-info}/package.json (100%) rename examples/{head-elements => meta-info}/pages/about.vue (100%) rename examples/{head-elements => meta-info}/pages/index.vue (100%) rename examples/{head-elements => meta-info}/static/about.js (100%) rename examples/{head-elements => meta-info}/static/body.js (100%) rename examples/{head-elements => meta-info}/static/defer.js (100%) rename examples/{head-elements => meta-info}/static/head.js (100%) diff --git a/examples/head-elements/README.md b/examples/head-elements/README.md deleted file mode 100644 index 1b7d3962d2..0000000000 --- a/examples/head-elements/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Updating headers with Nuxt.js - -https://nuxtjs.org/examples/seo-html-head diff --git a/examples/meta-info/README.md b/examples/meta-info/README.md new file mode 100644 index 0000000000..9832e65a42 --- /dev/null +++ b/examples/meta-info/README.md @@ -0,0 +1,13 @@ +# Manage your app's meta information + +Nuxt.js uses [vue-meta](https://github.com/declandewet/vue-meta) to manage page meta info (such as: meta, title, link, style, script) of your application. + +## Example + +SEO: https://nuxtjs.org/examples/seo-html-head + +## Documentation + +Nuxt.js: https://nuxtjs.org/guide/views#html-head + +vue-meta: https://github.com/declandewet/vue-meta#table-of-contents diff --git a/examples/head-elements/components/twitter-head-card.vue b/examples/meta-info/components/twitter-head-card.vue similarity index 100% rename from examples/head-elements/components/twitter-head-card.vue rename to examples/meta-info/components/twitter-head-card.vue diff --git a/examples/head-elements/nuxt.config.js b/examples/meta-info/nuxt.config.js similarity index 100% rename from examples/head-elements/nuxt.config.js rename to examples/meta-info/nuxt.config.js diff --git a/examples/head-elements/package.json b/examples/meta-info/package.json similarity index 100% rename from examples/head-elements/package.json rename to examples/meta-info/package.json diff --git a/examples/head-elements/pages/about.vue b/examples/meta-info/pages/about.vue similarity index 100% rename from examples/head-elements/pages/about.vue rename to examples/meta-info/pages/about.vue diff --git a/examples/head-elements/pages/index.vue b/examples/meta-info/pages/index.vue similarity index 100% rename from examples/head-elements/pages/index.vue rename to examples/meta-info/pages/index.vue diff --git a/examples/head-elements/static/about.js b/examples/meta-info/static/about.js similarity index 100% rename from examples/head-elements/static/about.js rename to examples/meta-info/static/about.js diff --git a/examples/head-elements/static/body.js b/examples/meta-info/static/body.js similarity index 100% rename from examples/head-elements/static/body.js rename to examples/meta-info/static/body.js diff --git a/examples/head-elements/static/defer.js b/examples/meta-info/static/defer.js similarity index 100% rename from examples/head-elements/static/defer.js rename to examples/meta-info/static/defer.js diff --git a/examples/head-elements/static/head.js b/examples/meta-info/static/head.js similarity index 100% rename from examples/head-elements/static/head.js rename to examples/meta-info/static/head.js