Fallback title based on time
This commit is contained in:
parent
3517b9f4e2
commit
367a818c26
|
@ -28,7 +28,11 @@ def run_jekyll(args)
|
|||
end
|
||||
|
||||
def slug(title)
|
||||
if title
|
||||
title.downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-')
|
||||
else
|
||||
Time.now.strftime("%s%9N") # nanoseconds since the Epoch
|
||||
end
|
||||
end
|
||||
|
||||
def location(folder, direction)
|
||||
|
|
Loading…
Reference in New Issue