Commit 36dcea55c65ac21eda7d833b2616ab35da5cc6ad
Use sequence numbers for post URLs again
This is a blog first, not a Scuttlebutt viewer. Sequence numbers are deterministic, unique, readable and short. If we ever want to support displaying several authors, we can prepend an index identifying the author.Greg K Nicholson committed on 10/15/2017, 11:39:41 PM
Parent: d741af36c148b95f03e98e759ea90aaedfe92bf3
Files changed
scuttleblog.py | changed |
scuttleblog.py | ||
---|---|---|
@@ -104,9 +104,9 @@ | ||
104 | 104 … | return content |
105 | 105 … | |
106 | 106 … | def define_post_filename(post): |
107 | 107 … | folder = 'hugo/content/posts' |
108 | - slug = str(post['frontmatter']['key']) | |
108 … | + slug = str(post['frontmatter']['sequence']) | |
109 | 109 … | filetype = 'md' |
110 | 110 … | return folder + '/' + slug + '.' + filetype |
111 | 111 … | |
112 | 112 … | def write_post_file(post): |
Built with git-ssb-web