git ssb

0+

Grey the earthling / scuttleblog



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.pychanged
scuttleblog.pyView
@@ -104,9 +104,9 @@
104104 return content
105105
106106 def define_post_filename(post):
107107 folder = 'hugo/content/posts'
108- slug = str(post['frontmatter']['key'])
108 + slug = str(post['frontmatter']['sequence'])
109109 filetype = 'md'
110110 return folder + '/' + slug + '.' + filetype
111111
112112 def write_post_file(post):

Built with git-ssb-web