basalt-ng documentation
Docs» Site Configuration

Site Configuration

The site configuration is located in the “site.json” file in the root directory of a basalt site. It is used to configure properties relating to the site itself, the title, base url, theme, and other such options.

Appearance Options

Property Type Required Description
titleStringYesTitle of your website
themeStringYesName of the theme to use
subtitleStringNoSubtitle of your website

Generation Options

Property Type Required Description
base_url String No Base URL used for generation of links. Defaults to “/”.
custom_homepage Boolean No If set to true, basalt will render the page with the filename “home.md” instead of using the post list as the homepage.
max_preview_length Number No How many characters after which to cut off the preview of a post in post lists. Defaults to 50.
feed_preview_length Number No Same as max_preview_length, but for the Atom feed. Defaults to unlimited.
static_in_root Boolean No For advanced users. Instead of in /static, files in the static directory will be placed in the root of the built site.
permalink_format_simple Boolean No Use older, simpler format for links to posts (/post/<slug>).
use_atom_feed Boolean No Enable/disable atom feed generation. Defaults to false.
upload_target String No Specifies where the upload command uploads to.

Custom Menu

Property Type Required Description
use_custom_menuBooleanNoOverrides automatic menu generation with that specified in custom_menu
custom_menuArrayIf use_custom_menu is enabledHolds the menu items for custom menu generation as specified in Custom Menu

Custom Post Types

Property Type Required Description
custom_post_types Array No If specified, adds specified post types. See Custom Post Types for more information.
Previous Next

basalt-ng documentation

Table of Contents

Table of Contents

  • Site Configuration
    • Appearance Options
    • Generation Options
    • Custom Menu
    • Custom Post Types

GENERAL

  • Home/About basalt-ng
  • Download
  • Release Notes

Documentation

  • Configuration
    • Automatic Build Uploading
    • Custom Menu
    • Netlify
    • Secrets
    • Site Configuration
  • Theme Development
    • Custom Post Types
    • Theme template variables
    • Themes
  • Usage
    • Getting Started
    • Pages
    • Posts