cms.js

Client-Side JavaScript Site Generator

Github星跟踪图

CMS.js Logo

CMS.js is a fully Client-side, JavaScript Markdown Site generator in the spirit of Jekyll that uses plain ol' HTML, CSS and JavaScript to generate your website. CMS.js is like a file-based CMS.
It takes your content, renders Markdown and delivers a complete website in Single-Page App fashion...without the aid of server-side scripting (no Node.js, PHP, Ruby, etc.).

CMS.js Screenshot

Join the chat at https://discord.gg/A2cHjg3
Join the chat at https://gitter.im/cms-js/community
Version
License

New Features in Version 2.0

  • Zero dependencies
  • Abstract types
  • Custom Templates
  • Search, Filtering, Tagging and Sorting
  • Github & Server Mode
  • Extendable Markdown Renderer and Plugins
  • Super small footprint - 10kb minified

Demo

Check out a working demo here

Quick Start

CMS.js supports two website modes, Github and Server. Host your website on Github using Github Pages (similar to Jekyll) or use Server mode if you choose to self host your content. Learn more about server mode and setup here.

  1. Clone the starter repo: git clone https://github.com/chrisdiana/cms.js-starter.git or download the latest release here
  2. Configure js/config.js to your liking
  3. Make sure to set your Github settings in js/config.js if using Github mode
  4. If using Github mode, create a new branch from your master or working branch called gh-pages (Github's default branch for hosting)
  5. Visit your site! (which should be located at https://yourusername.github.io/cms.js-starter)

Themes

Try out CMS.js with a variety of popular CSS frameworks such as Bootstrap, Foundation, and Bulma. Check out all the themes available here.

CMS.js Themes

How it works

Github Mode

In Github mode, CMS.js uses the Github API to get the content of your repo and serve them as a full website.

Server Mode

In Server mode, CMS.js takes advantage of the Server's Directory Indexing feature. By allowing indexes, CMS.js sends an AJAX call to your specified folders and looks for Markdown or HTML files.
After they are found, it takes care of everything else and delivers a full website.

Migration from Jekyll

Importing Posts

Once CMS.js is installed and running, simply copy all of your posts from your Jekyll project's _post folder to your designated CMS.js posts folder.

Importing Pages

Copy all of your Markdown pages from your Jekyll projects root folder into your designated CMS.js pages folder.

Coming soon!

  • Pagination
  • Template caching
  • Loader
  • CLI Utilities

Thanks!

Contributing

All forms of contribution are welcome: bug reports, bug fixes, pull requests and simple suggestions. If you do wish to contribute, please check out the Contributing Guide before making a pull request. Thanks!

List of contributors

You can find the list of contributors here.

主要指标

概览
名称与所有者chrisdiana/cms.js
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2016-01-08 03:45:51
推送于2024-07-04 06:50:52
最后一次提交
发布数2
最新版本名称v2.0.0 (发布于 2018-11-21 02:57:54)
第一版名称v1.0.0 (发布于 )
用户参与
星数3.1k
关注者数75
派生数290
提交数98
已启用问题?
问题数66
打开的问题数15
拉请求数26
打开的拉请求数2
关闭的拉请求数20
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?