-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.defaults.hjson
276 lines (266 loc) · 9.03 KB
/
config.defaults.hjson
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
{
// Main title of your project, used in the header & navbar
title: ProjectPages
// Display your navbar title as a dropdown for discovering your other projects
projectpages: [ // false to disable
{icon: "home", title: "iHome", url: "http://domotiquefacile.fr" }
{icon: "play-circle", title: "Launcher", url: "http://domotiquefacile.fr/launcher/" }
{icon: "picture", title: "MyPhotos", url: "https://github.com/alexylem/myphotos#myphotos"}
{icon: false, title: "♠ Coinche", url: "http://alexylem.github.io/coinche/"}
{icon: "wrench", title: "Builder" }
{icon: "bullhorn", title: "ProjectPage", url: "https://github.com/alexylem/projectpage"}
{icon: "globe", title: "Moeata Creations", url: "http://moeatacreations.fr"}
]
// Enable Disqus comments (https://publishers.disqus.com/engage)
comments: true
disqus_shortname: coinche
// Choose a Bootwatch theme (https://bootswatch.com/) ex: 'united'
theme: false // false to keep vanilla Bootstrap theme
// These are the main sections of your ProjectPage
sections: [ /* FULL DOCUMENTATION available here: http://alexylem.github.io/projectpage/#sections
Cheat-Sheet, do not uncomment
{
type: 'jumbotron|text|grid' // more to come in the future
link: 'Link Label' // Set a label if you need a link for this section on the top navigation bar
id: 'section-id' // used for navbar linking & scrollspy
title: 'Big title' // title of the section
text: 'This text supports **Github flavored Markdown**' // (https://markdown-it.github.io/)
icon: 'asterisk' // for "glyphicon glyphicon-asterisk" (see http://getbootstrap.com/components)
image: 'img/image.png'
items: [{ // used for grid section type
icon: 'asterisk',
title: 'Short title'
text: 'Short text for this icon'
}, {...}]
}
*/
{
type: jumbotron
title: "{ ProjectPage }"
text: Simple. Structured. Modern.
image: "https://placeimg.com/720/286/tech/sepia"
},{
text: '''
**ProjectPage** is a *simple* modern-looking single project page template you can fill via configuration file.
> :white_check_mark: This page is built upon *ProjectPage*.
'''
},{
type: grid
items: [{
icon: gift
title: Free
text: *ProjectPage* is free to download and to use! Why not [give it a try](#install)? License is [MIT](https://github.com/alexylem/projectpage/blob/master/LICENSE.md).
},{
icon: phone
title: Responsive
text: Your *ProjectPage* will render well on Smartphones, Tablets & PCs
},{
icon: list
title: No wiziwig hassle
text: Structured. Just fill-in the config file and your site is ready.
},{
icon: save-file
title: Mardown support
text: Quickly write formatted paragraphs with plain text markup.
},{
icon: comment
title: Comments module
text: Easily enable *Disqus* integration for social discussions with your community
},{
icon: signal
title: Evolutive
text: Your *ProjectPage* will continue to improve with the latest webdesign codes. No need to change your config!
}]
},{
title: Example of config file
text:
'''
This is an insight of this page's config file. It is written in hjson ([Human JSON](http://hjson.org/)) for easier writing of multi-line paragraphs.
``` cson
{
title: ProjectPage
comments: true
theme: false
sections: [{
type: jumbotron
title: { ProjectPage }
text: Simple. Structured. Modern.
image: https://placeimg.com/720/286/tech/sepia
},{
text: '' '
**ProjectPage** is a *simple* modern-looking single project page template you can fill via configuration file.
> :white_check_mark: This page is built upon *ProjectPage*.
'' '
}]
}
```
> `text` properties are *Markdown* enabled. You can [link](#), **format**, :), and [many more](https://markdown-it.github.io/)...
'''
}{
link: Section Types
id: sections
title: Sections types
text:
'''
A ProjectPage site is a vertical stack of Sections.
Each available section types are rendered below, with their corresponding configuration snippet:
* [Jumbotron](#jumbotron)
* [Text & Image](#text)
* [Grid](#grid)
* (more will be added in the future)
Each section can be published on the top Navigation bar as a link. For this, simply set `link` and `id` properies:
``` cson
sections: [{
link: Section Types
id: sections
title: Section Types
text: A ProjectPage site is a vertical stack of Sections...
}, {...}]
```
> Note that **Section Types** is available on the top nav-bar. *Scrollspy* automatically highlights the current section as you scroll down.
'''
}{
id: jumbotron
title: Jumbotron
text:
'''
``` cson
sections: [{
type: jumbotron
title: Im a Jumbotron // Optional
text: This is the Slogan // Optional
image: "https://..." // Optional
button: Click me // Optional
url: "http://..." // Optional, for button click
icon: play // Optional, for button icon, 'play' => "glyphicon glyphicon-play"
}, {...}]
```
> Go to [bootstrap components](http://getbootstrap.com/components) to see all supported icons.
'''
}{
type: jumbotron
title: I'm a Jumbotron
text: This is the Slogan
image: https://placeimg.com/720/286/nature
button: Click me
icon: play
}{
id: text
title: Text & Image
text:
'''
``` cson
sections: [{
type: text /* Optional as it's the default type */
title: I'm a title /* Optional */
text: And this is the text /* Optional */
image: https://... /* Optional */
button: Click me /* Optional */
url: http://... /* Optional, for button click */
icon: play /* Optional, for button icon, 'play' => "glyphicon glyphicon-play" */
}, {...}]
```
> The image on text sections will be 1 time left, 1 time right sided.
> Go to [Markdow-it](https://markdown-it.github.io/) to practice *Markdown* markup language.
> Here is the :+1: [Emoli Cheat-Sheet](http://www.emoji-cheat-sheet.com/) for *Markdown* emoji you can use.
> Go to [bootstrap components](http://getbootstrap.com/components) to see all supported section icons.
'''
}{
title: I'm a title
text: And this is the text
image: https://placeimg.com/300/300/nature
button: Click me
icon: play
}{
id: grid
title: Grid
text:
'''
``` cson
sections: [{
type: grid
items: [{
icon: send
title: Amazing features
text: I sware they are amazing
}{
icon: cloud
title: In the cloud
text: up in the sky
}{
icon: leaf
title: Ecological
text: and it's good for the planet
}{...}]
}, {...}]
```
> Icons will render by rows of 3. They will stack on narrow mobile displays.
'''
}{
type: grid
items: [{
icon: send
title: Amazing features
text: I sware they are amazing
}{
icon: cloud
title: In the cloud
text: up in the sky
}{
icon: leaf
title: Ecological
text: and it's good for the planet
}]
}{
link: Install
id: install
title: Installation
image: "https://placeimg.com/300/300/tech"
text: '''
1) [Download ProjectPage](https://github.com/alexylem/projectpage/archive/master.zip) and dump it on a static webserver
> Or better [clone it from Github](https://github.com/alexylem/projectpage)
2) Copy `config.defaults.hjson` into `config.hjson`
> :warning: If you directly modify `config.defaults.hjson` you will loose your changes on the next *ProjectPage* update.
3) Modify `config.hjson` to set-up your *ProjectPage*
> The default config file is well commented to guide you
:bulb: GitHub can [host your ProjectPage](https://pages.github.com). If you do so, you can set-up a secured online edition link for your site:
``` cson
[edit](https://github.com/USERNAME/REPONAME/edit/gh-pages/js/config.js)
```
'''
}{
title: Comment Module
image: https://media.disquscdn.com/docs/embed.png
text:
'''
> *Disqus* is a networked community platform used by hundreds of thousands of sites all over the web.
In order to enable the *Disqus* comment module in your *Projectpage*, just:
1) [Create an account](https://disqus.com/admin/signup/) at Disqus
2) Enable the comments module on your `config.js`:
``` cson
{
comments: true
disqus_shortname: YOUR_DISQUS_SHORTNAME
}
```
3) Configure your comment module in [Disqus admin page](https://disqus.com/admin/settings/general/)
'''
}{
link: Support
id: support
title: Get support
image: "https://placeimg.com/300/300/tech/grayscale"
text: '''
* Check out the [Documentation]()
* A question? Please [post a comment](#disqus_thread) below
* [Report an issue]()
* [Submit a feature request]()
> *ProjectPage* is built with :heart: on my own time, any kind of support is more than welcome:
* [Contribute to ProjectPage]() and join the team
* Spread the word!
* <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"><input type="hidden" name="" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="KUY4CUFXEYDR2"><input type="image" src="http://megaicons.net/static/img/icons_sizes/40/110/32/paypal-icon.png" border="0" name="submit"> Pay me a beer</form>
'''
}
]
footer: "Alexandre Mély - [:pencil2:](https://github.com/alexylem/projectpage/edit/gh-pages/config.defaults.hjson)"
}