The landing pages themselves are in the aptly named Dropbox folder,
landing-pages. In the level above this are a few other files that are used to reference images, videos, and sitewide (global) variables, such as the navbar and footer.
Yes, that’s what YAML actually stands for. YAML is a simple human-readable language for storing data. Basically, it’s a set of key-value pairs. A key is followed by a colon and then a value, which can be a text string or number or a bunch of other more programmy data types.
In our context, the site generator finds keys in an HTML template and replaces them with the values you set.
A couple things to note:
) or em-dash (
someKey: "A title: With a colon and subtitle."
The filename for a YAML landing page file corresponds to it’s URL, so
twitter-analytics.yml will create a page at http://lps.sproutsocial.com/twitter-analytics. In addition, if you create a folder named
folder containing a page named
page.yml, it will map to the URL http://lps.sproutsocial.com/folder/page.
The template for any page is set by the
layout key at the top of the YAML file. We currently have four templates that can be used to create landing pages. Look for the YAML files named
template## to get an example of the content each template contains. You can see what each template looks like on stage:
When you are satisfied with your changes, make sure you preview them on the stage site. When you’re ready, you can deploy the new site to production with one click through the deployment web app at stage.lps.sproutsocial.com/deploy.