Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Article Editor

Build Status

An assistant for bloggers without blog services

Languages

Description

You could publish articles without a lot of inconvenience if you used "Article Editor".

Features

  • Generate any articles with a template
  • Manage a list of article ids
  • Run smoothly

Requirement

How to Use

Some folders will be generated for the first time.

  1. Edit template/index.html(template).
    Special variables are available in the template.

    • ${title} ... Article's title
    • ${createdAt} ... Article's date
    • ${content} ... Article's content
  2. Execute npm start to launch.

  3. View http://localhost:8005 after running.

  4. Feel free to create your articles following instructions!

Installation

Execute these commands.

$ git clone https://github.com/GenbuHase/ArticleEditor.git
$ cd ArticleEditor
$ npm install

Config

system/config.js is editable.

{
	PORT: An used port(Number),

	PATH: {
		ARTICLE: A directory, containing a collection of articles(String),
		PUBLISH: A directory, containing generated html of articles(String),
		MEDIA: A directory, containing medias of each articles(String),
		COMMONMEDIA: A directory, containing common medias(String),
		TEMPLATE: A directory, containing a template(String)
	},

	onCreate: A callback, called when any articles are created(Function),
	onDelete: A callback, called when any articles are deleted(Function),
	onSave: A callback, called when any articles are drafted(Function),
	onPublish: A callback, called when any pages are generated(Function),
	onUpload: A callback, called when any medias are uploaded(Function)
}

Author

License

MIT License

About

ブログ形式サイトのための記事編集ツール

Topics

Resources

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages