blob: 4e9e13197d88e6d637f3b7691455c18512528fa1 (
plain)
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
|
<a name="Blog"></a>
## Blog
**Kind**: global class
* [Blog](#Blog)
* [new Blog(config)](#new_Blog_new)
* [.add(postLocation)](#Blog+add) ⇒ <code>Promise.<undefined></code>
* [.update(postLocation)](#Blog+update) ⇒ <code>Promise.<undefined></code>
* [.publish()](#Blog+publish) ⇒ <code>Promise.<undefined></code>
<a name="new_Blog_new"></a>
### new Blog(config)
The Blog class is the blog generator, it's in charge of adding and
updating posts, and handling the publishing.
| Param | Type | Description |
| --- | --- | --- |
| config | <code>Potluck.tConfiguration</code> | the initialization options to extend the instance |
<a name="Blog+add"></a>
### blog.add(postLocation) ⇒ <code>Promise.<undefined></code>
Shifts the blog posts, adds the passed path to slot 0, and
generates files.
**Kind**: instance method of [<code>Blog</code>](#Blog)
**Returns**: <code>Promise.<undefined></code> - empty promise, returns no value
| Param | Type | Description |
| --- | --- | --- |
| postLocation | <code>string</code> | the path to the directory containing the post structure |
<a name="Blog+update"></a>
### blog.update(postLocation) ⇒ <code>Promise.<undefined></code>
Adds the passed path to slot 0, and generates files.
**Kind**: instance method of [<code>Blog</code>](#Blog)
**Returns**: <code>Promise.<undefined></code> - empty promise, returns no value
| Param | Type | Description |
| --- | --- | --- |
| postLocation | <code>string</code> | the path to the directory containing the post structure |
<a name="Blog+publish"></a>
### blog.publish() ⇒ <code>Promise.<undefined></code>
Publishes the files to a static host.
**Kind**: instance method of [<code>Blog</code>](#Blog)
**Returns**: <code>Promise.<undefined></code> - empty promise, returns no value
|