No description
Find a file
Perry Woodin 301adce8fd Removed i18n html files
Using the yml file to control basic content instead of custom html
files. Custom html files can be used for some of the more complicated
layouts.
2016-07-12 17:33:10 -04:00
.sass-cache/9a49b57d5f63e6db4d7da45c4d90ec2de2c4e5c8 Moved footer to an include 2016-07-12 17:28:49 -04:00
_data Initial commit 2016-06-14 15:07:17 -04:00
_i18n Removed i18n html files 2016-07-12 17:33:10 -04:00
_includes Moved footer to an include 2016-07-12 17:28:49 -04:00
_layouts Moved footer to an include 2016-07-12 17:28:49 -04:00
_posts Initial commit 2016-06-14 15:07:17 -04:00
_sass Moved footer to an include 2016-07-12 17:28:49 -04:00
_site Removed i18n html files 2016-07-12 17:33:10 -04:00
assets started scss files 2016-07-12 09:26:33 -04:00
participate Split out content blocks for EN and ES on homepage. 2016-06-16 08:24:55 -04:00
what-is-dash Hero content and variable i18n example. 2016-07-12 13:02:45 -04:00
_config.yml Initial commit 2016-06-14 15:07:17 -04:00
index.html Removed i18n html files 2016-07-12 17:33:10 -04:00
README.md Initial commit 2016-06-14 15:07:17 -04:00

Dash Website

Jekyll

We are using Jekyll to generate the static html files. https://jekyllrb.com

Requirements

Supporting Gems

These Gems were also installed on the CI server.

Development

jekyll serve Will build to the _site directory whenever a file is changed and serve via 127.0.0.1

jekyll build --watch Will build to the _site directory whenever a file is changed.

Production Build

Production builds should be handled by CI.

i18n

Language variables are set in /_i18n/*.yml files.

Strings

To output a variable to a template use: {% t key %} or {% translate key %}

Files

i18n files can be saved in their corresponding directories under /_i18n/

To include a file use: {% tf pagename/blockname.md %} or {% translate_file pagename/blockname.md %}

Writing a Blog Post

Blog posts can be written in MarkDown (.md) or HTML (.html).

Posts need to be saved in the _posts directory and the filename must always start with YYYY-MM-DD-

For example: 2016-05-12-new-website.md

###Front matter The top page of every post should contain the following (Example):

author: perry
layout: post
image: /assets/images/2016/05/Node40-banner.jpg
title: New website for Node40
description: Check out the new website for Node40