Commit 45cb50c77f77073bed5d9a73ef555f43671fcaf5
Make Hugo's baseurl configurable
Greg K Nicholson committed on 10/15/2017, 2:36:13 PMParent: 7f52efdb80cbc9ef650fe516df888c342d967cdd
Files changed
conf.py | changed |
scuttleblog.py | changed |
conf.py | ||
---|---|---|
@@ -1,3 +1,4 @@ | ||
1 | 1 … | ssb_userid='@JoiN9c9+xO0jgu0gg5yflTf+L1peLTBneFHjrKbmcKo=.ed25519' |
2 | 2 … | hugo_theme='ananke' |
3 | 3 … | |
4 … | +hugo_baseurl='http://localhost:1313/' |
scuttleblog.py | ||
---|---|---|
@@ -98,11 +98,12 @@ | ||
98 | 98 … | return user_metadata |
99 | 99 … | |
100 | 100 … | def build_hugo_config(m): |
101 | 101 … | hugo_config = {} |
102 … | + hugo_config['baseurl'] = conf.hugo_baseurl | |
103 … | + hugo_config['theme'] = conf.hugo_theme | |
102 | 104 … | if 'name' in m['value']['content']: |
103 | 105 … | hugo_config['title'] = m['value']['content']['name'] |
104 | - hugo_config['theme'] = conf.hugo_theme | |
105 | 106 … | hugo_config['params'] = {} |
106 | 107 … | if 'description' in m['value']['content']: |
107 | 108 … | hugo_config['params']['subtitle'] = m['value']['content']['description'].replace('\n', ' ') |
108 | 109 … | return (hugo_config) |
Built with git-ssb-web