Skip to content

Marketing / landing page template using cookiecutter and pelican. Ready to deploy to S3 / cloudfront.

Notifications You must be signed in to change notification settings

b-ryan/cookiecutter-landing-page

Repository files navigation

Cookiecutter Landing Page

A template for Cookiecutter for generating a landing page, ready to deploy to CloudFront.

Table of Contents generated with DocToc

Usage

Before getting started, it's easiest to already have a CloudFront distribution set up. The general steps involved are:

  • Create an S3 bucket that will house the actual HTML files
  • Create a CloudFront distribution that points to this S3 bucket as its source
    • Configure the distribution so that it allows caching based on query strings, where the whitelisted query string is v:

      cloudfront screenshot

If you don't have a domain, you can always do this later. But you'll have to modify some files manually once you create the distribution (I can add notes about this later).

Now generate the landing page:

$ pip install cookiecutter
$ cookiecutter https://github.com/b-ryan/cookiecutter-landing-page

Once you have generated your project, see the README within the project directory for details on developing and deploying.

Features

  • Uses Pelican as the static page generator. (Normally Pelican is used as / thought of as a blog generator, but it has been working well for my needs as a landing page generator.)
  • Built-in cache busting
  • Auto-generated development and deploy scripts.
  • Bootstrap 4

About

Marketing / landing page template using cookiecutter and pelican. Ready to deploy to S3 / cloudfront.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published