- Notifications
You must be signed in to change notification settings - Fork286
Client-Side JavaScript Site Generator
License
chrisdiana/cms.js
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
CMS.js is a fullyClient-side, JavaScriptMarkdownSite generator in the spirit ofJekyll 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.).
English |简体中文
Website •Docs •Newsletter •Demo
- Zero dependencies
- Abstract types
- Custom Templates
- Search, Filtering, Tagging and Sorting
- Github & Server Mode
- Extendable Markdown Renderer and Plugins
- Super small footprint - 10kb minified
Check out a workingdemo here
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 setuphere.
- Clone thestarter repo:
git clone https://github.com/chrisdiana/cms.js-starter.gitor download thelatest release here - Configure
js/config.jsto your liking - Make sure to set your Github settings in
js/config.jsif using Github mode - If using Github mode, create a new branch from your master or working branch called
gh-pages(Github's default branch for hosting) - Visit your site! (which should be located at
https://yourusername.github.io/cms.js-starter)
You can also get started using the CDN:
<script src="https://unpkg.com/@chrisdiana/cmsjs"></script>Try out CMS.js with a variety of popular CSS frameworks such as Bootstrap, Foundation, and Bulma. Check out all the themesavailable here.
Check out the rest of the documentation on how to use configuration settings, options, etc. at theWiki.
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.
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.
- Pagination
- Template caching
- Loader
- CLI Utilities
- Poole (Default Theme)
All forms of contribution are welcome: bug reports, bug fixes, pull requests and simple suggestions. If you do wish to contribute, please check out theContributing Guide before making a pull request. Thanks!
You can find the list of contributorshere.
About
Client-Side JavaScript Site Generator
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.


