a decent starting point for your static blog
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cloudformation
source
.gitignore
Gemfile
Gemfile.lock
README.md
config.rb

README.md

middleman-blog-boilerplate

Articles live as Markdown files in source/

Generate a new article with middleman article "Article Title"

Test the blog at http://127.0.0.1:4567 after running middleman

Generate the static files by running middleman build

CloudFormation

To build out the infrastructure required to run this site, you can use the CloudFormation templates found in cloudformation/

You will need domain name (like example.com), a blog domain name (like www.example.com), and an AWS ACM Certificate ARN string.

# create the hosted zone in Route53
aws cloudformation create-stack \
  --stack-name <<ROUTE53 STACK NAME>> \
  --template-body file://./cloudformation/route53-zone.yaml \
  --parameters ParameterKey=DomainName,ParameterValue=<<EXAMPLE.COM>>

# create the S3 bucket and CloudFront setup
aws cloudformation create-stack \
  --stack-name <<CDN STACK NAME>> \
  --template-body file://./cloudformation/s3-static-website-with-cloudfront-and-route-53.yaml \
  --parameters \
      ParameterKey=DomainName,ParameterValue=<<EXAMPLE.COM>> \
      ParameterKey=FullDomainName,ParameterValue=<<WWW.EXAMPLE.COM>> \
      ParameterKey=AcmCertificateArn,ParameterValue=<<ACM ARN STRING>>