Skip to main content
U.S. flag

An official website of the United States government

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Pages.json

Pages-specific configuration can be done in a federalist.json  file in the root of your project. Currently, we only support the following keys:

  • headers 
  • fullClone 

headers

See specifying custom headers for details.

fullClone

values default? effect
not specified Y shallow clone
true  full clone
anything else shallow clone

By default, Pages does a “shallow” clone of a single branch of your repository to minimize the duration of your build as well as the space it requires. This means that the entire git revision history is NOT available during Pages builds, which may differ from your local environment. This can cause an issue with some site engines or plugins that generate “last modified” datetimes based on the git revision history for particular files.

Examples:

Setting "fullClone": true  in your federalist.json  file will tell Pages to pull the entire revision history for the specific branch.

Note: For larger repositories this may cause a noticiable increase in build time.

Ex.

// federalist.json
{
  ...
  "fullClone": true
}