cms.js - Javascript网站生器

cms.js   2016-01-19 23:12:19 发布
您的评价:
     
5.0
收藏     0收藏
文件夹
标签
(多个标签用逗号分隔)

logo-md.png

CMS.js is fully client-side, Javascript 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

Demo

Check out a working demo here

Quick Start

CMS.js currently supports two website modes, Github and Apache.

Github Mode

This is the default mode for CMS.js. Host your website on Github using Github Pages, similar to Jekyll.

Apache Mode

Use apache mode if you choose to self host your content. If you choose this option, make sure Apache with htaccess is enabled.

Install

  1. Clone the repo: git clone https://github.com/cdmedia/cms.js.git
  2. Configure js/config.js to your liking
  3. Make sure to set your githubUserSettings in js/config.js if using Github mode
  4. Visit your site!

How it works

Github Mode

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

Apache Mode

In Apache mode, CMS.js takes advantage of Apache's Directory Indexing feature. By allowing indexes, CMS.js sends an AJAX call to your specified folders and looks for Markdown 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.

Thanks!

Contributing

All forms of contribution are welcome: bug reports, bug fixes, pull requests and simple suggestions. If you do wish to contribute, please follow the Airbnb Javascript Style Guide Thanks!

List of contributors

You can find the list of contributors here.

项目地址: https://github.com/cdmedia/cms.js

扩展阅读

JavaScript 资源大全中文版
码农周刊分类整理
开源移动CMS框架:墨颀移动CMS
jsGen - 纯JavaScript编写的新一代开源社区网站系统
Node.js CMS 和Web应用平台:KeystoneJS

为您推荐

轻量级的HTML/CSS/JS框架:MUI
构建基于Git为数据中心的CMS
wring - Extract content from websites using CSS Selectors and XPath
照片库插件 Material Photo Gallery
Bootstrap入门笔记之(零)Bootstrap简介

更多

cms.js
建站系统CMS
相关文档  — 更多
相关经验  — 更多
相关讨论  — 更多