Repository navigation
Expand file tree
/
Copy pathconfig.js
More file actions
63 lines (49 loc) · 2.95 KB
/
Copy pathconfig.js
File metadata and controls
63 lines (49 loc) · 2.95 KB
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
/* ==========================================================================
DesignTech blog — configuration
--------------------------------------------------------------------------
Fill in the three values marked TODO. Everything else can stay as-is.
See README.md for step-by-step instructions on where to get them.
Heads up: apiKey and clientId are PUBLIC by design — they end up in the
browser and anyone can read them. That is normal and expected for this
kind of site. Protect them by restricting the API key to your own domain
in the Google Cloud console (README step 4). Never put a Google account
password or a "client secret" in this file.
========================================================================== */
window.DT_CONFIG = {
/* ---------------------------------------------------------------- site */
siteName: 'DesignTech',
tagline: 'Technion Design Lab',
heroTitle: 'Notes from the <em>Design Lab</em>',
heroText: 'Projects, experiments and process notes from the Technion Design Lab.',
defaultAuthor: 'DesignTech',
/* --------------------------------------------------------- google drive */
// Google Cloud API key (public read access to the folder).
// Restricted to https://royborkin.github.io/* and the Drive API only.
apiKey: 'AIzaSyBCB6_u8PwrnWYSEnY7bKj22p5FBdfNhpg',
// Google OAuth 2.0 Web client ID (only needed to publish; visitors never
// use it). Authorised JavaScript origin: https://royborkin.github.io
clientId: '400088361902-63evclbv3n9ck78qchooaco9uuh0j3in.apps.googleusercontent.com',
// The Drive folder posts live in. Taken from your shared link.
folderId: '1Fh0EvAhpeckWWa5vrP08ZTHfYzX7jmyM',
// OAuth scope used when publishing.
// 'drive.file' — app can only touch files it created. Try this first.
// 'drive' — full Drive access. Only switch to this if publishing
// fails with a 403/404 on the folder.
scope: 'https://www.googleapis.com/auth/drive.file',
/* ----------------------------------------------------------- publishing */
postsPerPage: 9,
// SHA-256 of "username:password". Change it with the snippet in README
// step 7 if you ever want different credentials.
//
// IMPORTANT: this is a speed bump, not real security. A static site has no
// server, so anyone who views the page source can see this file. It keeps
// casual visitors out of the editor; it will not stop someone determined.
// The real lock is your Google account — nothing can be written to Drive
// without signing in to Google.
authHash: '6eaaa7f2c32fb71b526823f55da41f17f037181c5ca4a0c1163daf3944e7dffc',
/* ---------------------------------------------------------------- demo */
// While apiKey is blank the site shows a few sample posts so you can see
// the design. It switches to your real Drive posts automatically once the
// key is filled in. Set to false to show a plain empty state instead.
demoWhenUnconfigured: true
};