{"id":19408600,"url":"https://github.com/ninest/nuxt-content-example","last_synced_at":"2025-04-24T10:30:35.407Z","repository":{"id":37902536,"uuid":"267214747","full_name":"ninest/nuxt-content-example","owner":"ninest","description":"📓 A blog example/boilerplate made with Nuxt Content","archived":false,"fork":false,"pushed_at":"2023-03-04T20:38:09.000Z","size":1993,"stargazers_count":16,"open_issues_count":14,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-18T03:49:31.875Z","etag":null,"topics":["blog","boilerplate","markdown","nuxt","nuxt-demo","nuxt-template"],"latest_commit_sha":null,"homepage":"https://nuxt-content-example.surge.sh/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ninest.png","metadata":{"funding":{"github":"ninest","patreon":null,"open_collective":null,"ko_fi":"parthkabra","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.buymeacoffee.com/ninest"]},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-27T03:49:38.000Z","updated_at":"2023-11-16T14:55:01.000Z","dependencies_parsed_at":"2023-02-15T05:32:20.149Z","dependency_job_id":null,"html_url":"https://github.com/ninest/nuxt-content-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninest%2Fnuxt-content-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninest%2Fnuxt-content-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninest%2Fnuxt-content-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninest%2Fnuxt-content-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ninest","download_url":"https://codeload.github.com/ninest/nuxt-content-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223948575,"owners_count":17230132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","boilerplate","markdown","nuxt","nuxt-demo","nuxt-template"],"created_at":"2024-11-10T12:06:42.319Z","updated_at":"2024-11-10T12:06:42.803Z","avatar_url":"https://github.com/ninest.png","language":"Vue","funding_links":["https://github.com/sponsors/ninest","https://ko-fi.com/parthkabra","https://www.buymeacoffee.com/ninest"],"categories":[],"sub_categories":[],"readme":"# [Nuxt Content Example](https://nuxt-content-example.surge.sh/)\n\u003e A quick and easy example of the new Nuxt Content and Components library\n\n![Made with Nuxt](https://img.shields.io/badge/Made%20With-Nuxt-008c78?style=flat-square)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n![GitHub](https://img.shields.io/github/license/ninest/nuxt-content-example?style=flat-square)\n[![Buy Me A Coffee](https://img.shields.io/badge/Donate-Buy%20Me%20A%20Coffee-orange.svg?style=flat-square)](https://www.buymeacoffee.com/ninest)\n\nCheck out the live demo at [nuxt-content-example.surge.sh](https://nuxt-content-example.surge.sh/) and the [tutorial here](https://neutrinone.now.sh/creating-a-static-website-with-nuxt-content).\n\n**Relevant documentation:**\n- [Nuxt components](https://github.com/nuxt/components)\n- [Nuxt content](http://content.nuxtjs.org/)\n\n## 🚀 Features\n- [x] Using Nuxt content\n- [x] Using Nuxt components\n- [x] Index and about pages\n- [x] Posts page, which lists out posts\n- [x] Separate page for each post\n- [x] Custom components for page layouts\n- [x] Style with normalize.css and custom styles\n- [x] SEO with meta tags\n- [ ] Include components in markdown\n\n## 🛠 Build setup\nClone or fork this repository then download it, then run this command to start the development server:\n\n```bash\nnpm run dev\n```\n\nMake changes in components and markdown files and see them reflected live in your website.\n\nTo generate a full static site, run\n\n```bash\nnpm run generate\n```\n\nThis will generate the static site in the `dist/` directory\n\n### Pages\nAny markdown file in the `content/` folder directory will create a new page. For example, try creating the page `privacy-policy.md` with the following content:\n\n```markdown\n---\ntitle: Privacy policy\ndescription: How our services value your privacy\n---\n\nThis is the privacy policy for my company.\n```\n\nSave the file, and head over to [localhost:3000/privacy-policy](http://localhost:3000/privacy-policy) to view the page.\n\nThis page is being generated by `pages/_slug.vue`:\n```vue\n\u003ctemplate\u003e\n  \u003cDefault :title=\"doc.title\"\u003e\n    \u003c!-- rendering markdown--\u003e\n    \u003cnuxt-content :document=\"doc\" /\u003e\n  \u003c/Default\u003e\n\u003c/template\u003e\n\n\n\u003cscript\u003e\nexport default {\n  ...,\n  async asyncData({$content, params}) {\n    // getting document based on URL\n    // if you're on localhost:300/abc, params.slug is \"abc\"\n    const doc = await $content(params.slug).fetch();\n    return { doc }\n  }\n}\n\u003c/script\u003e\n```\n\nView the tutorial for pages and posts [here](https://neutrinone.now.sh/creating-a-static-website-with-nuxt-content).\n\n### Hosting\nStatically generate the site by running\n\n```bash\nnpm run generate\n```\n\nThis will create a `dist/` folder with the site. I decided to host the site using [Surge.sh](surge.sh). Install surge with \n\n```bash\nnpm install --global surge\n```\n\n(Mac users may have to run `sudo npm install --global surge`)\n\n\nTo host the `dist/` folder, run\n\n\n```bash\nsurge dist\n```\n\nIf you haven't yet created an account, the CLI will guide you through the steps. You can choose a custom `*.surge.sh` domain.\n\nCheck out the live demo for this site at [nuxt-content-example.surge.sh](https://nuxt-content-example.surge.sh/).\n\n## ♥️ Support\nIf you liked this project, consider supporting by\n- ⭐️ Starring the repository\n- 🎒 Checking out my other [projects](https://github.com/ninest)\n- ☕️ Buying me [coffee](https://www.buymeacoffee.com/ninest)\n\n## 📜 License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninest%2Fnuxt-content-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninest%2Fnuxt-content-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninest%2Fnuxt-content-example/lists"}