No description
Find a file
2016-11-30 16:17:22 -08:00
_colors feat: Styling home page 2016-09-05 06:28:22 -04:00
_components style guide update, fix fonts after build process reorg (#17) 2016-09-20 12:56:26 -04:00
_data Update team.yml 2016-11-26 10:21:28 +00:00
_drafts Import of WordPress News posts 2016-07-15 09:28:15 -04:00
_i18n social icons 2016-11-30 16:17:22 -08:00
_includes social icons 2016-11-30 16:17:22 -08:00
_layouts Show the blog image with the content as well as in the hero 2016-11-18 10:08:07 -05:00
_plugins I18n/links (#22) 2016-10-12 12:45:40 -04:00
_posts Blog section 2016-07-14 14:05:47 -04:00
assets social icons 2016-11-30 16:17:22 -08:00
blog Set the blog posts to use the language specific basenav variable. 2016-11-14 12:06:53 -05:00
community Community 2016-11-22 07:55:22 -05:00
contact social icons 2016-11-30 16:17:22 -08:00
currency Governance Tools linking 2016-11-22 07:57:11 -05:00
get-dash Update: get-dash links open in new tab 2016-11-14 12:10:46 +00:00
merchants [Update] Merchants: Add grid and styles (WIP) 2016-11-14 00:28:47 +01:00
participate Update: Participate (contribute) - links 2016-11-14 14:00:54 +00:00
src social icons 2016-11-30 16:17:22 -08:00
style-guide add a style guide section, add existing colors 2016-07-23 01:36:03 -04:00
team Home / Blog / Team / Merchant TOS page updates (#34) 2016-11-10 07:26:24 -05:00
terms-of-use Home / Blog / Team / Merchant TOS page updates (#34) 2016-11-10 07:26:24 -05:00
.editorconfig (Feature) Build System: Use npm scripts for the build process (#16) 2016-09-17 02:14:13 +02:00
.eslintrc (Feature) Build System: Use npm scripts for the build process (#16) 2016-09-17 02:14:13 +02:00
.gitignore (Chore) gitignore: ignore webstorm idea file 2016-09-27 23:20:00 +02:00
.nvmrc (Feature) Build System: Use npm scripts for the build process (#16) 2016-09-17 02:14:13 +02:00
.travis.yml Moved rsync exclusions to a separate file. 2016-11-16 07:32:43 -05:00
_config.yml Moved rsync exclusions to a separate file. 2016-11-16 07:32:43 -05:00
cibuild.sh Turning on Travis ImageCheck 2016-11-17 09:38:38 -05:00
ciexclude.txt Moved rsync exclusions to a separate file. 2016-11-16 07:32:43 -05:00
dash.org-test-web.pem.enc Travis rsync 2016-09-13 10:36:37 -04:00
Gemfile feat: responsive hero header images (#23) 2016-10-21 13:27:19 -04:00
Gemfile.lock feat: responsive hero header images (#23) 2016-10-21 13:27:19 -04:00
index.html Homepage links 2016-11-15 08:23:34 -05:00
package.json [Feature] CTABox: Slider 2016-11-01 23:08:31 +01:00
README.md (Feature) Build System: Use npm scripts for the build process (#16) 2016-09-17 02:14:13 +02:00

Dash Website

Jekyll

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

Requirements (mac)

Dependencies

(If you have nvm, do nvm install && nvm use first.)

Simply run npm install to install all dependencies. This will also run bundle install on postinstall to install all ruby gems.

CI Note: The Gems must also be installed on the CI server.

Mac Note: Bundler will try to install the dependency nokogiri. If you are using a Mac, and run into issues related to nokogiri during bundle install, do the following:

xcode-select --install

gem install nokogiri

Then run bundle install

Plugins

(If you still have a _plugins/jekyll-multiple-languages-plugin directory in your root folder, you will need to remove it.)

Development

npm start or npm run watch to build to the _site directory whenever a file is changed and serve via localhost:3000

Production Build

Production builds should be handled by CI.

npm run build will build a fully minified, mangled, and compressed build to the _site directory.

Mac xcode-select --install gem install nokogiri

i18n

Language variables are set in /_i18n/*.yml files. The master language file is /_i18n/en.yml. All other languages should use that file as a base.

Writing Content

Almost all of the content is defined as a variable in the /_i18n/*.yml files. There will be a separate yml file for each language that is supported. The master

Content should be written with little to no html. Do not wrap the content in <p></p> tags. If you need separate paragraphs, use two line breaks. For example:

Paragraph one


Paragraph two

Will render as:

<p>Paragraph one</p>
<p>Paragraph two</p>

Displaying Content

Strings

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

Markdown

To output a variable to a template as markdown use: {% tmd key %} or {% translatemd 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