@dungsil/nuxt-articles

Simple Git-based headless CMS for Nuxt.js

Usage no npm install needed!

<script type="module">
  import dungsilNuxtArticles from 'https://cdn.skypack.dev/@dungsil/nuxt-articles';
</script>

README

nuxt-articles

소규모 사이트를 위한 간단한 헤드리스 CMS

Language
English | 한국어

기능

articles 디렉토리에 작성한 마크다운 파일을 API 엔드포인트로 생성합니다.

TODO

  • remark 및 rehype 플러그인 커스터마이징
  • 코드 블록에서 코드 하이라이팅

@nuxt/content와 다른점

  • 마크다운만 지원
  • HTTP API만 생성
  • (아직은) Nuxt v3 지원!!

설치

npm install -D @dungsil/nuxt-articles
// nuxt.config.ts

export default {
  buildModules: ['@dungsil/nuxt-articles']
}
# .gitignore
server/api/articles.ts
  • srcDir에 따라 변경이 필요할 수 있습니다.

라이선스 및 크레딧

MIT License © 2022 Kim Younggeon

@nuxt/content 에서 영감을 받았습니다.
@unocss/nuxt 의 소스코드를 참고하였습니다.