From 5036d3602f02896df2fb896db2413deb33106b23 Mon Sep 17 00:00:00 2001 From: kmacoders Date: Thu, 1 Jul 2021 00:06:02 +0700 Subject: [PATCH] feat: add utils | page --- content/blog/first-blog-post-ehandy.md | 23 +++++++++++ pages/blog/page/_page.vue | 23 +++++++++++ utils/getContent.js | 48 ++++++++++++++++++++++ utils/getRoutes.js | 6 +++ utils/getSiteMeta.js | 56 ++++++++++++++++++++++++++ utils/global.js | 18 +++++++++ 6 files changed, 174 insertions(+) create mode 100644 content/blog/first-blog-post-ehandy.md create mode 100644 utils/getContent.js create mode 100644 utils/getRoutes.js create mode 100644 utils/getSiteMeta.js create mode 100644 utils/global.js diff --git a/content/blog/first-blog-post-ehandy.md b/content/blog/first-blog-post-ehandy.md new file mode 100644 index 0000000..594b468 --- /dev/null +++ b/content/blog/first-blog-post-ehandy.md @@ -0,0 +1,23 @@ +--- +title: Fisrt Blog Post eHandy +description: 'Empower your NuxtJS application with @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a Git-based Headless CMS.' +image: 'https://cdn.emk.dev/templates/featured-image.png' +tags: ['VueJS', 'Nuxt'] +published: '2021-06-30' +--- + +## Getting started + +Empower your NuxtJS application with `@nuxtjs/content` module: write in a `content/` directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB like API, acting as a **Git-based Headless CMS**. + +## Writing content + +Learn how to write your `content/`, supporting Markdown, YAML, CSV and JSON: https://content.nuxtjs.org/writing. + +## Fetching content + +Learn how to fetch your content with `$content`: https://content.nuxtjs.org/fetching. + +## Displaying content + +Learn how to display your Markdown content with the `` component directly in your template: https://content.nuxtjs.org/displaying. diff --git a/pages/blog/page/_page.vue b/pages/blog/page/_page.vue index c4cfeaa..19e8a50 100644 --- a/pages/blog/page/_page.vue +++ b/pages/blog/page/_page.vue @@ -14,6 +14,7 @@