mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 19:02:29 +03:00
46 lines
4.6 KiB
HTML
46 lines
4.6 KiB
HTML
<!DOCTYPE html><html lang="en"><head><title>config</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content=""><meta name="groc-document-path" content="config"><meta name="groc-project-path" content="config.js"><link rel="stylesheet" type="text/css" media="all" href="assets/style.css"><script type="text/javascript" src="assets/behavior.js"></script><body><div id="meta"><div class="file-path">config.js</div></div><div id="document"><div class="segment"><div class="comments"><div class="wrapper"><h1 id="ghost-configuration">Ghost Configuration</h1></div></div></div><div class="segment"><div class="code"><div class="wrapper"><span class="cm">/**</span>
|
|
<span class="cm"> * global module</span>
|
|
<span class="cm"> **/</span>
|
|
<span class="p">(</span><span class="kd">function</span> <span class="p">()</span> <span class="p">{</span>
|
|
<span class="s2">"use strict"</span><span class="p">;</span>
|
|
|
|
<span class="cm">/**</span>
|
|
<span class="cm"> * @module config</span>
|
|
<span class="cm"> * @type {Object}</span>
|
|
<span class="cm"> */</span>
|
|
<span class="kd">var</span> <span class="nx">config</span> <span class="o">=</span> <span class="p">{};</span></div></div></div><div class="segment"><div class="comments"><div class="wrapper"><h2 id="admin-settings">Admin settings</h2></div></div></div><div class="segment"><div class="code"><div class="wrapper"> <span class="cm">/**</span>
|
|
<span class="cm"> * @property {string} defaultLang</span>
|
|
<span class="cm"> */</span>
|
|
<span class="nx">config</span><span class="p">.</span><span class="nx">defaultLang</span> <span class="o">=</span> <span class="s1">'en'</span><span class="p">;</span>
|
|
|
|
<span class="cm">/**</span>
|
|
<span class="cm"> * @property {boolean} forceI18n</span>
|
|
<span class="cm"> */</span>
|
|
<span class="nx">config</span><span class="p">.</span><span class="nx">forceI18n</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span></div></div></div><div class="segment"><div class="comments"><div class="wrapper"><h2 id="themes">Themes</h2></div></div></div><div class="segment"><div class="code"><div class="wrapper"> <span class="cm">/**</span>
|
|
<span class="cm"> * @property {string} themeDir</span>
|
|
<span class="cm"> */</span></div></div></div><div class="segment"><div class="comments"><div class="wrapper"><p>Themes</p></div></div><div class="code"><div class="wrapper"> <span class="nx">config</span><span class="p">.</span><span class="nx">themeDir</span> <span class="o">=</span> <span class="s1">'themes'</span><span class="p">;</span>
|
|
|
|
<span class="cm">/**</span>
|
|
<span class="cm"> * @property {string} activeTheme</span>
|
|
<span class="cm"> */</span>
|
|
<span class="nx">config</span><span class="p">.</span><span class="nx">activeTheme</span> <span class="o">=</span> <span class="s1">'casper'</span><span class="p">;</span></div></div></div><div class="segment"><div class="comments"><div class="wrapper"><h2 id="homepage-settings">Homepage settings</h2></div></div></div><div class="segment"><div class="code"><div class="wrapper"> <span class="cm">/**</span>
|
|
<span class="cm"> * @module homepage</span>
|
|
<span class="cm"> * @type {Object}</span>
|
|
<span class="cm"> */</span>
|
|
<span class="nx">config</span><span class="p">.</span><span class="nx">homepage</span> <span class="o">=</span> <span class="p">{};</span>
|
|
|
|
<span class="cm">/**</span>
|
|
<span class="cm"> * @property {number} features</span>
|
|
<span class="cm"> */</span>
|
|
<span class="nx">config</span><span class="p">.</span><span class="nx">homepage</span><span class="p">.</span><span class="nx">features</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
|
|
|
|
<span class="cm">/**</span>
|
|
<span class="cm"> * @property {number} articles</span>
|
|
<span class="cm"> */</span>
|
|
<span class="nx">config</span><span class="p">.</span><span class="nx">homepage</span><span class="p">.</span><span class="nx">articles</span> <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
|
|
|
|
<span class="cm">/**</span>
|
|
<span class="cm"> * @property {Object} exports</span>
|
|
<span class="cm"> */</span>
|
|
<span class="nx">module</span><span class="p">.</span><span class="nx">exports</span> <span class="o">=</span> <span class="nx">config</span><span class="p">;</span>
|
|
<span class="p">}());</span></div></div></div></div></body></html> |