No description
Find a file
tungfa 39f369bbaf News Post Bitfinex
2 images
2017-03-07 09:54:37 +08:00
404 aded 404 2017-02-25 22:01:06 +07: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 bump Dash Core wallets to 0.12.1.3 2017-03-02 20:26:03 -05:00
_drafts bugfix - removing too-long filename (#152) 2017-03-06 15:24:39 +08:00
_i18n News Post Bitfinex 2017-03-07 09:54:37 +08:00
_includes added dummy images 2017-03-02 04:37:31 +07:00
_layouts config - added SIP - subresource integrity protection tags/hashes 2017-02-27 09:22:00 +00:00
_plugins I18n/links (#22) 2016-10-12 12:45:40 -04:00
_posts Lots of cleanup: 2017-02-02 22:49:14 -07:00
assets News Post Bitfinex 2017-03-07 09:54:37 +08:00
blog cleanup on news posts to invoke and include in build 2017-02-10 23:04:41 -07:00
buy added dummy data for buy page 2017-03-01 00:40:07 +07:00
community fixes 2017-02-13 15:52:20 +08:00
contact Update index.html 2017-02-26 13:36:47 +01:00
contribute refactors paths: 2017-02-02 23:16:53 -07:00
evolution Update Evo page: swap consumers and merchant sectons 2017-02-06 02:34:44 +00:00
exchanges added exchanges page 2017-03-02 01:13:46 +07:00
get-dash Implements OS detection & cleanup on /get-dash/index.html 2017-01-31 00:18:40 -07:00
governance config - removing dos newlines 2017-02-24 16:14:09 +00:00
graphics config - removing dos newlines 2017-02-24 16:14:09 +00:00
masternodes added content for masternodes 2017-02-25 01:20:19 +07:00
merchants fixed tasks from google sheets 2017-02-02 03:59:09 +07:00
mining fixed mining page 2017-02-25 20:24:23 +07:00
network Update: proposal gen link 2017-02-05 22:16:15 +00:00
payments fixed payments page; (#144) 2017-02-28 15:27:25 +00:00
src added dummy data 2017-03-02 04:17:33 +07:00
style-guide add a style guide section, add existing colors 2016-07-23 01:36:03 -04:00
team Fix team page 2017-02-06 06:50:20 -05:00
terms-of-use Home / Blog / Team / Merchant TOS page updates (#34) 2016-11-10 07:26:24 -05:00
update changed link for video 2017-02-09 17:03:53 +07:00
wallets fixed wallet page 2017-03-02 20:28:23 -05:00
woocommerce marget 2017-02-22 00:22:46 +07:00
.editorconfig Implements wallets area update suggestions from tungfa 2017-01-22 13:12:51 -07:00
.eslintrc (Feature) Build System: Use npm scripts for the build process (#16) 2016-09-17 02:14:13 +02:00
.gitignore ignore ".lock" files 2017-03-01 14:45:02 -07:00
.nvmrc (Feature) Build System: Use npm scripts for the build process (#16) 2016-09-17 02:14:13 +02:00
.README.md.swp latest - ping moo (#153) 2017-03-06 15:02:54 +08:00
.ruby-version updated ruby version 2017-02-11 13:30:38 +08:00
.swp latest - ping moo (#153) 2017-03-06 15:02:54 +08:00
.travis.yml Build Fix 2017-01-19 22:43:11 -07:00
_config.yml adds and activates portuguese language file with cleanup 2017-03-01 14:12:39 -07:00
cibuild.sh enh - relative 12.1 download hrefs + CI bugfix 2017-02-05 08:51:14 +00:00
ciexclude.txt Moved rsync exclusions to a separate file. 2016-11-16 07:32:43 -05:00
dash.org-test-web.pem.enc bugfix - partial revert of 782268e7 - pem file 2017-02-27 06:06:41 +00:00
Gemfile feat: responsive hero header images (#23) 2016-10-21 13:27:19 -04:00
index.html Removed Protonmail 2017-02-15 14:19:58 +08:00
npm-debug.log.2092820115 cleaned up two pages: governance and masternode; added some minor fixes in contact page (#136) 2017-02-24 00:19:20 +01:00
package.json package.json: htmlproof script ignores "/binaries" path 2017-02-10 08:35:51 -07:00
README.md Lots of cleanup: 2017-02-02 22:49:14 -07: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.

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!

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

###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.