This repository has been archived by the owner. It is now read-only.
Configs for AcyOrt
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.editorconfig
.eslintignore
.eslintrc
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
index.js
package-lock.json
package.json

README.md

acyort-config

Build Status codecov

Configs for AcyOrt

Install

$ npm i acyort-config -S

Usage

# config.yml

title: AcyOrt
description: A Node.js blog tool powered by GitHub.
url: https://acyortjs.github.io/
theme:
per_page:
menu:
  categories: /category/
  tags: /tag/
default_category:
user: acyortjs
repository: acyortjs.github.io
scripts:
plugins:
  - acyort-rss
public_dir: /
authors:
timezone:
language:
line_numbers:
order:
category_dir:
tag_dir:
post_dir:
token:
const getConfig = require('acyort-config')
const { defaults } = require('acyort-config')

const config = getConfig(__dirname)

console.log(defaults)
console.log(config)
/*
{ title: 'AcyOrt',
  description: 'A Node.js blog tool powered by GitHub.',
  url: 'https://acyortjs.github.io',
  theme: 'ccc45',
  per_page: 10,
  menu:
   { archives: '/archives/',
     categories: '/category/',
     tags: '/tag/' },
  default_category: 'uncategorized',
  user: 'acyortjs',
  repository: 'acyortjs.github.io',
  scripts: [],
  plugins: [ 'acyort-rss' ],
  public_dir: '/',
  authors: [],
  timezone: 'Asia/Shanghai',
  language: 'en',
  line_numbers: true,
  order: 'created',
  category_dir: 'category',
  tag_dir: 'tag',
  post_dir: 'post',
  token: null,
  root: '/',
  scripts_dir: 'scripts',
  base: '/Users/am0200/Documents/github/acyort-config/test' }
*/