Commit b976d93ab04d97e0821b6f4d8f858befe73e40f6
Make the Hugo theme configurable
You'll still have to manually install the right theme.Greg K Nicholson committed on 10/15/2017, 12:43:26 PM
Parent: 7c646de89922ee69de7009071971ee565c9785b4
Files changed
conf.py | changed |
scuttleblog.py | changed |
conf.py | ||
---|---|---|
@@ -1,2 +1,3 @@ | ||
1 | -userid="@JoiN9c9+xO0jgu0gg5yflTf+L1peLTBneFHjrKbmcKo=.ed25519" | |
1 … | +userid='@JoiN9c9+xO0jgu0gg5yflTf+L1peLTBneFHjrKbmcKo=.ed25519' | |
2 … | +hugo_theme='ananke' | |
2 | 3 … |
scuttleblog.py | |||
---|---|---|---|
@@ -99,9 +99,9 @@ | |||
99 | 99 … | ||
100 | 100 … | def build_hugo_config(m): | |
101 | 101 … | hugo_config = {} | |
102 | 102 … | hugo_config['title'] = m['value']['content']['name'] | |
103 | - hugo_config['theme'] = 'ananke' # FIXME | ||
103 … | + hugo_config['theme'] = conf.hugo_theme | ||
104 | 104 … | hugo_config['params'] = {} | |
105 | 105 … | hugo_config['params']['subtitle'] = m['value']['content']['description'].replace('\n', ' ') | |
106 | 106 … | return (hugo_config) | |
107 | 107 … |
Built with git-ssb-web