Skip to content

taylorsmcclure/photos-taylorm-cc-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHUGO Static Template Generator

Description

This python3 script utilizes boto3 to read all the image objects in a given bucket, then it will generate a markdown based template for the use of phugo. Example: My Template

Perquisites

  • A s3 read-only permitted access key and secret access key
  • AWS CLI access configured through credential/config files

Usage

usage: generator.py [-h] [--log-level {DEBUG,INFO,ERROR,CRITICAL}]
                    [--output-path OUTPUT_PATH] [--region REGION]
                    bucket

Generates templates for phugo from an s3 bucket

positional arguments:
  bucket                s3 bucket to read from e.g. img.taylorm.cc

optional arguments:
  -h, --help            show this help message and exit
  --log-level {DEBUG,INFO,ERROR,CRITICAL}
                        Chose the loglevel from the available choices; default
                        is ERROR.
  --output-path OUTPUT_PATH
                        Choose the output directory, this would be the
                        "content" directory.
  --region REGION       Specify region so S3 full url is valid for object(s)

TODO: No meaningful logging or verbose options are available at this point

About

Generates the phugo pages based on contents of my s3 bucket

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages