• Stars
    star
    190
  • Rank 203,739 (Top 5 %)
  • Language
    CSS
  • Created about 12 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Squarespace starter template with minimal markup and styles.

Base Template

A minimal template for developers getting started with Squarespace, using developer mode. No tweaks, no web fonts, no static assets, no static pages, no system collections, no collection features, no modules at all.

For more information about the Squarespace Developer Platform see developers.squarespace.com.

Usage

See the Developer Getting Started page for an step-by-step guide for getting started with the Squaresapce Developer Platform. You can create a new website using this template by visiting base-template.squarespace.com and clicking the "Create a Site Like This" button. This template is also available on GitHub.

Squarespace Templates

Each Squarespace website is based on a template like this one. Templates contain regular web files like CSS and JavaScript. In addition, Squarespace recognizes a few special file types:

JSON-T Template Files

Squarespace template files are written in JSON Template, also known as JSON-T. It is a simple yet expressive template language. JSON-T files have different extensions depending on the type of file, for example .list, .item, and .region.

LESS Files

Template LESS files (.less) are processed through the LESS preprocessor. LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions.

Template Folder Structure

Squarespace template files are organized using the following folder structure at the root of your site:

  • assets: design assets β€” example: images, fonts and icons
  • blocks: reusable blocks of JSON-T (AKA partials) β€” ex: navigation.block
  • collections: collection files β€” [collection].list, [collection].item, [collection].conf
  • scripts: Javascript files β€” site.js
  • styles: stylesheet files β€” styles.css, styles.less
  • [root]: sitewide files β€” site.region, template.conf

Essential Files

At the very minimum, your template needs a .region file and a template.conf.

/site.region

Typically this file is used as the global site template – containing the site header, footer, and sidebars. This is like the index.html of your site. Every template must have at least one .region file. Simple templates will have a single .region, more advanced templates will have multiple .region files describing header, body, and footer variants. Regions files live in the root directory of a template.

See the Layouts & Regions documentation for more details.

/template.conf

Contains the configuration settings for the template. This is where you can name your template, specify layouts, add navigation sections, specify stylesheets, and other general site options. Template configuration files must live in the root directory of a template.

See the Template Configuration documentation for more details.

Further Reading

For further reading please consult the Squarespace Template Overview and other documentation on the Squarespace developers website.

More Repositories

1

datasheets

Read data from, write data to, and modify the formatting of Google Sheets
Python
617
star
2

pgbedrock

Manage a Postgres cluster's roles, role memberships, schema ownership, and privileges
Python
311
star
3

simple-source

Easy and type-safe iOS table and collection views in Swift.
Swift
98
star
4

jersey2-guice

Jersey 2.0 w/ Guice
Java
92
star
5

squarespace-toolbelt

JavaScript
87
star
6

base-template-npm

JavaScript
86
star
7

wright-framework

Less
66
star
8

template-compiler

Java compiler for primary Squarespace template language
Java
41
star
9

squarespace-core

JavaScript
32
star
10

endeavor-framework

Less
29
star
11

template-engine

TypeScript implementation of Squarespace template language
TypeScript
26
star
12

less-compiler

Less compiler in Java
Java
18
star
13

squarespace-video-background-rendering

JavaScript
15
star
14

eslint-config-squarespace

Provides the universal configuration for eslint at Squarespace.
JavaScript
14
star
15

doncab-framework

Less
14
star
16

squarespace-mercury

JavaScript
13
star
17

squarespace-video-background

Less
11
star
18

pouchdb-lru-cache

PouchDB plugin for storing binary data in a least-recently-used (LRU) cache.
JavaScript
11
star
19

squarespace-controller

JavaScript
10
star
20

cldr

Java library for localization using Unicode CLDR JSON data
Java
10
star
21

squarespace-social-links

Less
9
star
22

squarespace.github.io

Open source at Squarespace
CSS
9
star
23

squarespace-layout-base

JavaScript
8
star
24

bureau-framework

Less
8
star
25

dossier-framework

Less
8
star
26

graphite-tools

Tools for the Graphite project
Python
7
star
27

squarespace-layout-autocolumns

JavaScript
6
star
28

squarespace-polyfills

JavaScript
6
star
29

squarespace-darwin

JavaScript
5
star
30

squarespace-ancillary

JavaScript
4
star
31

cldr-engine-java

Java port of @phensley/cldr Typescript library
Java
4
star
32

less-ts

Squarespace Less compiler in Typescript
TypeScript
3
star
33

squarespace-layout-slideshow

JavaScript
2
star
34

gradle-jasmin-plugin

Gradle plugin to assemble Jasmin source to JVM classfiles
Java
2
star
35

squarespace-fonts-loaded

JavaScript
1
star
36

clojuresque-base

Clojure
1
star
37

introduction-to-react-workshop

HTML
1
star
38

gradle-utils

Groovy
1
star
39

compiler-common

Common code for Squarespace's compiler projects
Java
1
star
40

clojuresque

Groff
1
star
41

netty-http-client-test

Java
1
star