No description
Find a file
2017-10-22 00:25:45 -04: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 DW-348 DW-346 DW-345 DW-344 DW-343 DW-342 DW-341 added merchants; added exchange; added teammates 2017-10-08 10:29:55 +07:00
_drafts bugfix - removing too-long filename (#152) 2017-03-06 15:24:39 +08:00
_i18n DW-386 fixed spanish misspelling 2017-10-18 09:44:31 +07:00
_includes DW-384 fixed dead link 2017-10-15 11:12:29 +07:00
_layouts Add analytics to site templates 2017-05-30 22:33:38 +07:00
_plugins remove RSS plugin 2017-05-16 12:19:20 +07:00
_posts Lots of cleanup: 2017-02-02 22:49:14 -07:00
assets [DW-385] Changed logo for exchange 2017-10-19 08:41:42 +07:00
blog Merge branch 'chuckwilliams37/master' of https://github.com/dashpay/dash-website into chuckwilliams37/master 2017-04-10 22:42:12 -06:00
buy added dummy data for buy page 2017-03-01 00:40:07 +07:00
community DW-288 DW-289 DW-290 DW-291 DW-295 DW-296 DW-297 DW-298 DW-300 DW-301 DW-302 DW-303 DW-304 DW-305 DW-306 DW-307 DW-308 DW-309 DW-310 DW-311 DW-312 DW-313 DW-314 DW-314 DW-315 DW-316 DW-317 DW-318 DW-319 DW-320 DW-321 DW-322 added new posts; exchanges; meerchants 2017-09-30 13:42:00 +01:00
contact config - make all forum links relative 2017-04-15 22:59:53 +00:00
contribute refactors paths: 2017-02-02 23:16:53 -07:00
evolution Revert "added buy dash" 2017-10-03 20:24:16 +07:00
exchanges added exchanges page 2017-03-02 01:13:46 +07:00
get-dash Revert "added buy dash" 2017-10-03 20:24:16 +07:00
governance fix link to proposal generator 2017-09-19 07:09:42 +07:00
graphics style - permission cleanup 2017-04-25 22:28:52 +00:00
legal fixed kiosk buttons 2017-04-04 09:02:37 +08:00
masternodes style - converting dos formatted files to unix 2017-05-30 01:08:07 +00:00
merchants added merchants; brokers 2017-06-21 21:29:42 +07:00
mining erased links on mining; Added merchant 2017-07-10 22:36:48 +08:00
network DW-350 updated links from network page 2017-10-10 22:06:56 +07:00
payments fixed payments page; (#144) 2017-02-28 15:27:25 +00:00
rss 🐛 DW-408 Fix broken RSS feed 2017-10-22 00:25:45 -04:00
school Added dash-school; Added Evolution Roadmap Button on Evolution Page; 2017-07-10 14:18:34 +08:00
script spell rsync correctly 2017-09-30 19:38:23 -07:00
src Revert "added buy dash" 2017-10-03 20:24:16 +07:00
style-guide add a style guide section, add existing colors 2016-07-23 01:36:03 -04:00
team fixed human resources lady 2017-07-13 09:35:25 +08:00
terms-of-use Home / Blog / Team / Merchant TOS page updates (#34) 2016-11-10 07:26:24 -05:00
update fix link to proposal generator 2017-09-19 07:09:42 +07:00
wallets Added Jaxx ios 2017-04-29 20:58:11 -04:00
woocommerce marget 2017-02-22 00:22:46 +07:00
.dockerignore DW-325 stop serving encrypted deploy SSH key 2017-09-30 16:57:51 -07:00
.editorconfig Implements wallets area update suggestions from tungfa 2017-01-22 13:12:51 -07:00
.eslintrc /network page tables JS refactor & cleanup. Updates ESLINT rules, adds htmlproof & eslint to build process, adds window.global.siteApi url defined from _config.yml 2017-03-23 22:56:58 -06:00
.gitignore do not ignore .lock files 2017-09-27 22:36:08 +07:00
.jshintignore Adding jshint and package.json updates 2017-06-08 17:32:26 -04:00
.jshintrc Adding jshint and package.json updates 2017-06-08 17:32:26 -04:00
.nvmrc (Feature) Build System: Use npm scripts for the build process (#16) 2016-09-17 02:14:13 +02:00
.ruby-version updated ruby version 2017-02-11 13:30:38 +08:00
.travis.yml fix release deploy 2017-10-01 10:47:18 -07:00
_config.yml DW-325 stop serving encrypted deploy SSH key 2017-09-30 16:57:51 -07:00
cibuild.sh build site using docker 2017-09-29 09:45:56 +01:00
ciexclude.txt Moved rsync exclusions to a separate file. 2016-11-16 07:32:43 -05:00
dash.org-test-web.pem.enc config - encrypting pem with known password to support fork builds 2017-03-19 08:59:19 +00:00
Dockerfile dockerize for deterministic site builds 2017-09-27 16:39:26 +01:00
favicon.ico DW-323 add favicon to repository 2017-09-30 11:05:55 -07:00
Gemfile added specific jekyll version 2017-06-25 22:10:05 +07:00
Gemfile.lock add Gemfile.lock to git tracking 2017-09-27 22:36:08 +07:00
google32a060027f993c31.html Added Google Webmaster verification file 2017-04-29 20:57:59 -04:00
index.html added chiense popup; added japanese language; removed guide link in mining 2017-05-30 01:02:30 +00:00
package-lock.json add pre-commit pkg, to run eslint & htmlproofer 2017-06-07 11:24:34 +07:00
package.json add bundle exec for ruby commands 2017-09-27 22:36:08 +07:00
README.md Lots of cleanup: 2017-02-02 22:49:14 -07:00
robots.txt DW-324 add robots.txt to repo 2017-09-30 16:00:04 -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.