No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
404 New release (#600) May 20, 2018
_colors feat: Styling home page Sep 5, 2016
_components style guide update, fix fonts after build process reorg (#17) Sep 20, 2016
_data New updates (#714) Sep 14, 2018
_drafts merged Mar 10, 2017
_i18n DW-1076 added news (#715) Sep 17, 2018
_includes removed lang link on news (#712) Sep 12, 2018
_layouts added merchandise Dec 12, 2017
_plugins Translation (#627) Jun 8, 2018
_posts Lots of cleanup: Feb 3, 2017
assets DW-1076 added news (#715) Sep 17, 2018
blogapi Improvement for blog api (#578) May 2, 2018
buy added dummy data for buy page Feb 28, 2017
community New updates (#693) Aug 22, 2018
contact New updates (#617) May 28, 2018
contribute DW-455 fixed broken links Nov 2, 2017
copay New release (#665) Jul 10, 2018
evolution New updates (#617) May 28, 2018
exchanges DW-554 DW-566 DW-567 updated merchants and exchanges Dec 25, 2017
get-dash New release (#665) Jul 10, 2018
governance fix link to proposal generator Sep 19, 2017
graphics New updates (#621) May 30, 2018
legal Align buttons in info-grid (#644) Jun 28, 2018
masternodes style - converting dos formatted files to unix May 30, 2017
merchandise added merchandise Dec 12, 2017
merchants New updates (#617) May 28, 2018
mining New release (#600) May 20, 2018
network New updates (#710) Sep 12, 2018
news New updates (#617) May 28, 2018
payments fixed payments page; (#144) Feb 28, 2017
rss 🐛 DW-408 Fix broken RSS feed Oct 22, 2017
school Added dash-school; Added Evolution Roadmap Button on Evolution Page; Jul 10, 2017
script Update masternode graph during site build (#680) Jul 22, 2018
src New updates (#701) Aug 29, 2018
style-guide add a style guide section, add existing colors Jul 23, 2016
team Propose fix some typos (#640) Jun 22, 2018
terms-of-use Home / Blog / Team / Merchant TOS page updates (#34) Nov 10, 2016
wallets DW-728 fixed pass gen link Mar 2, 2018
woocommerce marget Feb 21, 2017
.dockerignore Update masternode graph during site build (#680) Jul 22, 2018
.editorconfig merge from origin Jan 23, 2017
.eslintrc /network page tables JS refactor & cleanup. Updates ESLINT rules, add… Mar 24, 2017
.gitignore do not ignore .lock files Sep 27, 2017
.jshintignore Adding jshint and package.json updates Jun 8, 2017
.jshintrc Adding jshint and package.json updates Jun 8, 2017
.nvmrc (Feature) Build System: Use npm scripts for the build process (#16) Sep 17, 2016
.ruby-version updated ruby version Feb 11, 2017
.travis.yml fix release deploy Oct 1, 2017
Dockerfile Update masternode graph during site build (#680) Jul 22, 2018
Gemfile replaced jekyll-paginate with jekyll-paginate-v2 Feb 13, 2018
Gemfile.lock replaced jekyll-paginate with jekyll-paginate-v2 Feb 13, 2018
README.md Fix typos May 12, 2018
_config.yml New updates (#701) Aug 29, 2018
cibuild.sh build site using docker Sep 29, 2017
ciexclude.txt Moved rsync exclusions to a separate file. Nov 16, 2016
dash.org-test-web.pem.enc added old pem enc Apr 6, 2018
favicon.ico DW-323 add favicon to repository Sep 30, 2017
google32a060027f993c31.html Added Google Webmaster verification file Apr 30, 2017
index.html New updates (#617) May 28, 2018
package-lock.json updated npm package due security issue (#713) Sep 13, 2018
package.json updated npm package due security issue (#713) Sep 13, 2018
robots.txt DW-324 add robots.txt to repo Sep 30, 2017
yarn.lock New fixes (#695) Aug 22, 2018

README.md

Dash Website

Jekyll

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

Requirements (macOS)

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.

npm run htmlproof will run ImageCheck, ScriptCheck, and LinkCheck on the built "_site" folder "*.html" files. Travis CI will not deploy unless this command finishes successfully!

macOS 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

###Blog Post Images Image paths for blogs are currently relative to /assets/img/blog by default. If we replaced the image path from the front matter above with:

	image: MyImage.jpg

... will look for "MyImage.jpg" in the /assets/img/blog folder.