Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to jekyll and modified some pages in par with the design #13

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
.idea
lib/
node_modules/
npm-debug.log
.sass-cache
_site
1 change: 0 additions & 1 deletion README.md

This file was deleted.

12 changes: 12 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Site settings
title: nw.js
email: [email protected]
description: nwjs
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://nwjs.io" # the base hostname & protocol for your site
github_repo: nwjs/nw.js
permalink: pretty
baseurl: /website

# Build settings
markdown: kramdown
32 changes: 32 additions & 0 deletions _data/downloads.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"version_title": "v0.12.0-alpha1",
"download32Bit": [
{
"label": "Windows 32bit",
"link": "http://dl.nwjs.io/v0.12.0-alpha1/nwjs-v0.12.0-alpha1-win-ia32.zip"
},
{
"label": "Mac 32bit",
"link": "http://dl.nwjs.io/v0.12.0-alpha1/nwjs-v0.12.0-alpha1-osx-ia32.zip"
},
{
"label": "Linux 32bit",
"link": "http://dl.nwjs.io/v0.12.0-alpha1/nwjs-v0.12.0-alpha1-linux-ia32.tar.gz"
}
],
"download64Bit": [
{
"label": "Windows 64bit",
"link": "http://dl.nwjs.io/v0.12.0-alpha1/nwjs-v0.12.0-alpha1-win-x64.zip"
},
{
"label": "Mac 64bit",
"link": "http://dl.nwjs.io/v0.12.0-alpha1/nwjs-v0.12.0-alpha1-osx-x64.zip"
},
{
"label": "Linux 64bit",
"link": "http://dl.nwjs.io/v0.12.0-alpha1/nwjs-v0.12.0-alpha1-linux-x64.tar.gz"
}
],
"release_notes": "https://groups.google.com/d/msg/nwjs-general/qWJczc-E92E/9lmIiMfysU8J"
}
File renamed without changes.
11 changes: 11 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="nwjs">
<meta name="keywords" content="nw.js, nwjs, nw js, node-webkit, node, node.js, chrome, chromium, javascript">
<title>NWJS.io</title>

<link href="{{ site.baseurl }}/css/style.css" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,600' rel='stylesheet' type='text/css'>
</head>
14 changes: 14 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<header>
<a href="/" class="logo-wrapper">
<img src="{{ site.baseurl }}/img/logo.png" class="logo" alt="NWJS.io"/>
</a>
<nav>
{% assign current = page.url | downcase | split: '/' %}
{% assign current_path = page.url | downcase %}
<a href="{{ site.baseurl }}/" {% if current_path == '/' %}class='current'{% endif %}>Home</a> |
<a href="{{ site.baseurl }}/quickstart" {% if current[1] == 'quickstart' %}class='current'{% endif %}>Quick Start</a> |
<a href="{{ site.baseurl }}/download" {% if current[1] == 'download' %}class='current'{% endif %}>Downloads</a> |
<a href="{{ site.baseurl }}/blog" {% if current[1] == 'blog' %}class='current'{% endif %}>Blog</a> |
<a href="{{ site.baseurl }}/docs" {% if current[1] == 'docs' %}class='current'{% endif %}>Documentation</a>
</nav>
</header>
16 changes: 16 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>

{% include head.html %}

<body>

{% include header.html %}

{{ content }}

{% include footer.html %}

</body>

</html>
14 changes: 14 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: default
---
<div class="post">

<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
</header>

<article class="post-content">
{{ content }}
</article>

</div>
18 changes: 18 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: default
---
<div class="container blog">
<div class="content post">

<header class="post-header">
<h2 class="post-title">{{ page.title }}</h2>
<p class="post-meta">{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
</header>

<article class="post-content">
{{ content }}
</article>

</div>

</div>
8 changes: 8 additions & 0 deletions _layouts/quickstart.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: default
---
<div class="container quickstart">
<div class="content">
{{ content }}
</div>
</div>
8 changes: 8 additions & 0 deletions _sass/_global.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.heading {
font-weight: 600;
color: #1ca0da;
font-size: 1.8em;
}
nav .current {
color: #1ca0da;
}
24 changes: 24 additions & 0 deletions _sass/_highlight.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.highlight {
background-color: #f5f5f5;
padding: 0.5em 2em;
code {
font-family: Open Sans;
}
.nt {
color: #8EBC53;
}
.language-html {
.nx, .nb {
color: #1ca0da;
}
}
// string
.s1, .s2 {
color: #da1c1c;
}
.language-json {
.nt {
color: #da1c1c;
}
}
}
Loading