Commit 84569ab3a0fa6affd682cd0970953560293a03b2
Add a TODO.md file
Move existing TODO and FIXME here.Greg K Nicholson committed on 10/15/2017, 5:08:36 PM
Parent: cd701886292dd0144e10889ae3995adc117bd334
Files changed
scuttleblog.py | changed |
TODO.md | added |
scuttleblog.py | |||
---|---|---|---|
@@ -64,9 +64,8 @@ | |||
64 | 64 … | ellipsis = '...' | |
65 | 65 … | title = title if len(title) <= maxlength else title[:maxlength].rsplit(' ', 1)[0] + ellipsis | |
66 | 66 … | body = text | |
67 | 67 … | title = re.sub('^#+\s+', '', title) | |
68 | - # FIXME: This doesn't gracefully handle markdown near the start of a post. | ||
69 | 68 … | return {'title': title, 'body': body} | |
70 | 69 … | ||
71 | 70 … | def build_post_structure(p): | |
72 | 71 … | post = {} | |
@@ -133,9 +132,8 @@ | |||
133 | 132 … | if os.path.exists(file): | |
134 | 133 … | os.remove(file) | |
135 | 134 … | with open('hugo/config.json', 'w') as f: | |
136 | 135 … | f.write (json.dumps(build_hugo_config(metadata), indent = 4)) | |
137 | - # TODO: add the user's image in the right place | ||
138 | 136 … | ||
139 | 137 … | def run_hugo(): | |
140 | 138 … | subprocess.run(['hugo', '-s', 'hugo']) | |
141 | 139 … |
TODO.md | ||
---|---|---|
@@ -1,0 +1,38 @@ | ||
1 … | +# Config | |
2 … | + | |
3 … | +* More generic way of including Hugo config in conf.py. | |
4 … | +* Option to include only posts from a configurable channel. | |
5 … | + | |
6 … | + | |
7 … | +# Performance | |
8 … | + | |
9 … | +* Investigate whether it's worth trying generate only new posts. | |
10 … | + | |
11 … | + | |
12 … | +# Use SSB content better | |
13 … | + | |
14 … | +## Blog metadata | |
15 … | + | |
16 … | +* Use the user's image as the blog's hero image. | |
17 … | + | |
18 … | + | |
19 … | +## Post content | |
20 … | + | |
21 … | +* Handle links to SSB objects in some generic way. | |
22 … | +* Try to handle internal SSB links (to other posts). | |
23 … | + * This is probably theme-specific. | |
24 … | + | |
25 … | + | |
26 … | +## Post titles | |
27 … | + | |
28 … | +* Work out a better way to generate a post title from various types of posts. | |
29 … | + * Handle markdown (links) in post titles. | |
30 … | + * Try to find a theme that elegantly handles posts without titles. | |
31 … | + | |
32 … | + | |
33 … | +## Replies | |
34 … | + | |
35 … | +* Show the whole thread. Attribute comments properly. | |
36 … | + * Need to work out a suitable Hugo data structure for this. | |
37 … | + | |
38 … | + |
Built with git-ssb-web