Format month photo path component with a leading 0
This commit is contained in:
parent
8aaeef4d45
commit
c6531e618d
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ def main(argv):
|
|||
month = earliest_exif_date.month
|
||||
|
||||
name = args.title if args.title else os.path.splitext(os.path.basename(photo))[0]
|
||||
post_path = os.path.join(PHOTOS_CONTENT_DIR, str(year), str(month), name)
|
||||
post_path = os.path.join(PHOTOS_CONTENT_DIR, f'{year:04}', f'{month:02}', name)
|
||||
|
||||
try:
|
||||
hugo_command = ['hugo', 'new', '--clock', earliest_exif_date.isoformat(), post_path]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue