git ssb

0+

Grey the earthling / scuttleblog



Commit 45cb50c77f77073bed5d9a73ef555f43671fcaf5

Make Hugo's baseurl configurable

Greg K Nicholson committed on 10/15/2017, 2:36:13 PM
Parent: 7f52efdb80cbc9ef650fe516df888c342d967cdd

Files changed

conf.pychanged
scuttleblog.pychanged
conf.pyView
@@ -1,3 +1,4 @@
11 ssb_userid='@JoiN9c9+xO0jgu0gg5yflTf+L1peLTBneFHjrKbmcKo=.ed25519'
22 hugo_theme='ananke'
33
4 +hugo_baseurl='http://localhost:1313/'
scuttleblog.pyView
@@ -98,11 +98,12 @@
9898 return user_metadata
9999
100100 def build_hugo_config(m):
101101 hugo_config = {}
102 + hugo_config['baseurl'] = conf.hugo_baseurl
103 + hugo_config['theme'] = conf.hugo_theme
102104 if 'name' in m['value']['content']:
103105 hugo_config['title'] = m['value']['content']['name']
104- hugo_config['theme'] = conf.hugo_theme
105106 hugo_config['params'] = {}
106107 if 'description' in m['value']['content']:
107108 hugo_config['params']['subtitle'] = m['value']['content']['description'].replace('\n', ' ')
108109 return (hugo_config)

Built with git-ssb-web