No description, website, or topics provided.
HTML CSS JavaScript Other
Latest commit 3e947f4 Feb 23, 2017 @tungfa tungfa committed on GitHub News Post + Video (#135)
local checked
Permalink
Failed to load latest commit information.
_colors feat: Styling home page Sep 5, 2016
_components style guide update, fix fonts after build process reorg (#17) Sep 20, 2016
_data init commit for payments page Feb 21, 2017
_drafts Import of WordPress News posts Jul 15, 2016
_i18n News Post + Video (#135) Feb 23, 2017
_includes Merge pull request #132 from Prtfw/master Feb 23, 2017
_layouts [Fix] MobileNav: Make logo scroll with menu to prevent overlapping Feb 5, 2017
_plugins I18n/links (#22) Oct 12, 2016
_posts Lots of cleanup: Feb 3, 2017
assets News Post + Video (#135) Feb 23, 2017
blog cleanup on news posts to invoke and include in build Feb 11, 2017
budget added content masternode Feb 22, 2017
buy-sell fixed styles Feb 22, 2017
community added a merchant + image (#120) Feb 13, 2017
contact interim commit for link fix Feb 5, 2017
contribute refactors paths: Feb 3, 2017
evolution Update Evo page: swap consumers and merchant sectons Feb 6, 2017
get-dash Implements OS detection & cleanup on /get-dash/index.html Jan 31, 2017
graphics added font in graphic page Feb 6, 2017
masternodes added images Feb 22, 2017
merchants fixed tasks from google sheets Feb 1, 2017
mining added bg for contact Feb 22, 2017
network Update: proposal gen link Feb 5, 2017
payments pr ready for new payments page, minor changes on merchant page Feb 22, 2017
src Merge pull request #132 from Prtfw/master Feb 23, 2017
style-guide add a style guide section, add existing colors Jul 23, 2016
team Fix team page Feb 6, 2017
terms-of-use Home / Blog / Team / Merchant TOS page updates (#34) Nov 10, 2016
update changed link for video Feb 9, 2017
wallets -- wallets/index.html: Pulls all electrum wallets Feb 11, 2017
woocommerce marget Feb 21, 2017
.editorconfig merge from origin Jan 23, 2017
.eslintrc (Feature) Build System: Use npm scripts for the build process (#16) Sep 17, 2016
.gitignore adds "npm-debug.log" to .gitignore Feb 1, 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 Build Fix Jan 20, 2017
Gemfile feat: responsive hero header images (#23) Oct 21, 2016
Gemfile.lock feat: responsive hero header images (#23) Oct 21, 2016
README.md Lots of cleanup: Feb 3, 2017
_config.yml kills all languages and language path files from build Feb 16, 2017
cibuild.sh interim commit for link fix Feb 5, 2017
ciexclude.txt Moved rsync exclusions to a separate file. Nov 16, 2016
dash.org-test-web.pem.enc Updated key encryption settings for Travis. Dec 5, 2016
index.html Removed Protonmail Feb 15, 2017
package.json package.json: htmlproof script ignores "/binaries" path Feb 10, 2017

README.md

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.