-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
54 lines (42 loc) · 1.15 KB
/
config.js
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
console.log('config.js');
// Using a module approach works fine--except in firefox!!!
//import {Atto} from './js/atto.js';
// using $.getScript below
var plugins =
[
'simple-dropdown-nav',
];
var github_base = 'https://raw.githubusercontent.com/';
var username = 'abalter/';
var reponame = 'attoweb/';
// var base_url = github_base + username + reponame + 'master/';
var base_url = "https://raw.githubusercontent.com/Attoweb/attoweb.org/master/";
// base_url = "";
var routes =
{
footer: {path: "content", source: "footer.md", target: "main"},
};
var default_content =
[
{target: 'header', source: 'content/header.md'},
{target: 'nav', source: 'content/nav.md', callback: 'plugins/simple-dropdown-nav/simple-dropdown-nav.js'},
{target: 'footer', source: 'footer'}
];
var initial_content =
{
target: 'main', source: 'content/about.md'
};
var configs =
{
plugins: plugins,
routes: routes,
default_content: default_content,
initial_content: initial_content,
base_url: base_url,
};
$.getScript('js/atto.js', (data, success) =>
{
console.log("got atto.js " + success);
var app = new Atto(configs);
app.initializeApp();
});