Skip to content

Commit 7bf9723

Browse files
committed
initial commit
0 parents  commit 7bf9723

20 files changed

+1094
-0
lines changed

Diff for: .editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 2
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.py]
14+
indent_style = space
15+
indent_size = 4

Diff for: .gitignore

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Ignore docs files
2+
_gh_pages
3+
_site
4+
.ruby-version
5+
6+
# Numerous always-ignore extensions
7+
*.diff
8+
*.err
9+
*.orig
10+
*.log
11+
*.rej
12+
*.swo
13+
*.swp
14+
*.zip
15+
*.vi
16+
*~
17+
18+
# OS or Editor folders
19+
.DS_Store
20+
._*
21+
Thumbs.db
22+
.cache
23+
.project
24+
.settings
25+
.tmproj
26+
*.esproj
27+
nbproject
28+
*.sublime-project
29+
*.sublime-workspace
30+
.idea
31+
32+
# Komodo
33+
*.komodoproject
34+
.komodotools
35+
36+
# grunt-html-validation
37+
validation-status.json
38+
validation-report.json
39+
40+
# Folders to ignore
41+
node_modules
42+
bower_components

Diff for: 404.html

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!DOCTYPE html>
2+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
3+
<head>
4+
<meta http-equiv="content-type" content="text/html; charset=utf-8">
5+
<meta name="viewport" content="width=device-width; initial-scale=1.0, maximum-scale=1">
6+
<link href="http://gmpg.org/xfn/11" rel="profile">
7+
8+
<title>
9+
Hyde, a Jekyll theme
10+
</title>
11+
12+
<!-- CSS -->
13+
<link rel="stylesheet" href="/public/css/hyde.css">
14+
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400italic,400,600,700|Abril+Fatface">
15+
16+
<!-- Icons -->
17+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/public/touch-icon-144-precomposed.png">
18+
<link rel="shortcut icon" href="/public/favicon.png">
19+
20+
<!-- RSS -->
21+
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
22+
</head>
23+
<body>
24+
25+
<header class="masthead">
26+
<div class="masthead-inner">
27+
<h1>Hyde</h1>
28+
<p class="lead">An elegant open source and mobile first theme for <a href="http://jekyllrb.com" target="_blank">Jekyll</a>. Made by <a href="https://twitter.com/mdo" target="_blank">@mdo</a>.</p>
29+
30+
<div class="colophon">
31+
<ul class="colophon-links">
32+
<li>
33+
<a href="https://github.com/mdo/hyde/archive/v1.0.0.zip">Download</a>
34+
</li>
35+
<li>
36+
<a href="https://github.com/mdo/hyde">GitHub project</a>
37+
</li>
38+
<li>Currently v1.1</li>
39+
</ul>
40+
<p>&copy; 2013. All rights reserved.</p>
41+
</div>
42+
43+
</div>
44+
</header>
45+
46+
<div class="content container">
47+
<div class="fourohfour">
48+
<h1>404: Page not found</h1>
49+
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="/">Visit the home page</a> to see if you can find it manually. Thanks!</p>
50+
<hr>
51+
<h3>Heads up!</h3>
52+
<p>This is a basic 404 page for use with GitHub Pages. It's source code is not generated by Jekyll.</p>
53+
<div>
54+
</div>
55+
56+
</body>
57+
</html>

Diff for: CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
andhyde.com

Diff for: LICENSE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Released under MIT License
2+
3+
Copyright (c) 2013 Mark Otto.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Diff for: README.md

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# [Did](https://mdo.github.io/did)
2+
3+
[Did](http://mdo.github.io/did) is a [Jekyll](http://jekyllrb.com) theme, designed and built by [@mdo](https://twitter.com/mdo). It's based on another theme, [Hyde](http://andhyde.com). Did is designed to showcase your content first and foremost. Navigation and extraneous information remains offscreen until the reader requests it.
4+
5+
![Hyde screenshot](https://f.cloud.github.com/assets/98681/1330948/de10196c-353f-11e3-86d0-8e967dd95722.png)
6+
7+
The name originates from a rather well-known, and unsurprisingly relevant, psychiatric condition, [dissociative identity disorder](http://en.wikipedia.org/wiki/Dissociative_identity_disorder). (Protip: It's just like Dr. Jekyll & Mr. Hyde.)
8+
9+
10+
## Usage
11+
12+
### 1. Install Jekyll
13+
14+
Did is built for use with Jekyll, so naturally you'll need to install that. On Macs, it's rather straightforward:
15+
16+
```bash
17+
$ gem install jekyll
18+
```
19+
20+
**Windows users:** Windows users have a bit more work to do, but luckily [@juthilo](https://github.com/juthilo) has your back with his [Run Jekyll on Windows](https://github.com/juthilo/run-jekyll-on-windows) guide.
21+
22+
You may also need to install Pygments, the Python syntax highlighter for code snippets that places nicely with Jekyll. Read more about this [in the Jekyll docs](http://jekyllrb.com/docs/templates/#code_snippet_highlighting).
23+
24+
### 2a. Quick start
25+
26+
To help anyone with any level of familiarity with Jekyll quickly get started, Did includes everything you need for a basic Jekyll site. To that end, just download Did and start up Jekyll.
27+
28+
### 2b. Roll your own Jekyll site
29+
30+
Folks wishing to use Jekyll's templates and styles can do so with a little bit of manual labor. Download Did and then copy what you need (likely `_layouts/`, `*.html` files, `atom.xml` for RSS, and `public/` for CSS, JS, etc.).
31+
32+
### 3. Running locally
33+
34+
To see your Jekyll site with Did applied, start a Jekyll server. In Terminal, from `/did` (or whatever your Jekyll site's root directory is named):
35+
36+
```bash
37+
$ jekyll serve
38+
```
39+
40+
Open <http://localhost:4000> in your browser, and voilà. You're done.
41+
42+
43+
## Options
44+
45+
Did includes a some customizable options, typically applied via classes on the `<body>` element.
46+
47+
### Reverse layout
48+
49+
Reverse the page orientation with a single class.
50+
51+
```html
52+
<body class="layout-reverse">
53+
...
54+
</body>
55+
```
56+
57+
58+
## Author
59+
60+
**Mark Otto**
61+
<https://github.com/mdo>
62+
<https://twitter.com/mdo>
63+
64+
65+
## License
66+
67+
Open sourced under the [MIT license](LICENSE.md).
68+
69+
<3

Diff for: _config.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
title: Did
2+
tagline: 'A Jekyll theme, with personalities'
3+
description: 'Did is a <a href="http://jekyllrb.com" target="_blank">Jekyll</a> theme with multiple personalities: the content, and the chrome. Made by <a href="https://twitter.com/mdo" target="_blank">@mdo</a>.'
4+
url: http://andhyde.com
5+
version: 1.0.0
6+
author:
7+
name: ''
8+
email: ''
9+
markdown: rdiscount
10+
permalink: pretty
11+
pygments: true
12+
paginate: 5

Diff for: _includes/head.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<head>
2+
<meta http-equiv="content-type" content="text/html; charset=utf-8">
3+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
4+
<link href="http://gmpg.org/xfn/11" rel="profile">
5+
6+
<title>
7+
{% if page.title %}{{ page.title }} &middot; {% endif %}
8+
{{ site.tagline }}
9+
</title>
10+
11+
<!-- CSS -->
12+
<link rel="stylesheet" href="/public/css/did.css">
13+
{% if page.layout == "focused" %}
14+
<link rel="stylesheet" href="/public/css/hyde-focused.css">
15+
{% endif %}
16+
<link rel="stylesheet" href="/public/css/syntax.css">
17+
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700|PT+Sans:400">
18+
19+
<!-- Icons -->
20+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/public/apple-touch-icon-144-precomposed.png">
21+
<link rel="shortcut icon" href="/public/favicon.ico">
22+
23+
<!-- RSS -->
24+
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
25+
</head>

Diff for: _layouts/default.html

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!DOCTYPE html>
2+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
3+
4+
{% include head.html %}
5+
6+
<body>
7+
8+
<div class="sidebar" id="sidebar">
9+
10+
<div class="sidebar-item">
11+
<p>{{ site.description }}</p>
12+
</div>
13+
14+
<nav class="sidebar-nav">
15+
<a class="sidebar-nav-item" href="https://github.com/mdo/did/archive/v{{ site.version }}.zip">Download</a>
16+
<a class="sidebar-nav-item" href="https://github.com/mdo/did">GitHub project</a>
17+
<span class="sidebar-nav-item">Currently v{{ site.version }}</span>
18+
</nav>
19+
20+
<div class="sidebar-item">
21+
<p>&copy; 2013. {{ site.author.name }} All rights reserved.</p>
22+
</div>
23+
</div>
24+
25+
<div class="wrap">
26+
<a href="#sidebar" class="sidebar-show"></a>
27+
<a href="#" class="sidebar-hide"></a>
28+
29+
<div class="masthead">
30+
<h3 class="masthead-title">
31+
{{ site.title }}
32+
<small>{{ site.tagline }}</small>
33+
</h3>
34+
</div>
35+
36+
<div class="content container">
37+
{{ content }}
38+
</div>
39+
</div>
40+
41+
</body>
42+
</html>

Diff for: _layouts/post.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="post">
6+
<h1 clas="post-title">{{ page.title }}</h1>
7+
<span class="post-date">{{ page.date | date_to_string }}</span>
8+
{{ content }}
9+
</div>
10+
11+
<div class="related">
12+
<h2>Related Posts</h2>
13+
<ul class="related-posts">
14+
{% for post in site.related_posts limit:3 %}
15+
<li>
16+
<h3>
17+
<a href="{{ post.url }}">
18+
{{ post.title }}
19+
<small>{{ post.date | date_to_string }}</small>
20+
</a>
21+
</h3>
22+
</li>
23+
{% endfor %}
24+
</ul>
25+
</div>

Diff for: _posts/2013-12-31-whats-jekyll.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
layout: post
3+
title: What's Jekyll?
4+
---
5+
6+
[Jekyll](http://jekyllrb.com) is a static site generator, an open-source tool for creating simple yet powerful websites of all shapes and sizes. From [the project's readme](https://github.com/mojombo/jekyll/blob/master/README.markdown):
7+
8+
> Jekyll is a simple, blog aware, static site generator. It takes a template directory [...] and spits out a complete, static website suitable for serving with Apache or your favorite web server. This is also the engine behind GitHub Pages, which you can use to host your project’s page or blog right here from GitHub.
9+
10+
It's an immensely useful tool and one we encourage you to use here with Hyde.
11+
12+
Find out more by [visiting the project on GitHub](https://github.com/mojombo/jekyll).

Diff for: _posts/2014-01-01-example-content.md

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
layout: post
3+
title: Example content
4+
---
5+
6+
This blog post shows a few different types of content that's supported and styled with Hyde. Basic typography, images, and code are all supported.
7+
8+
-----
9+
10+
Cum sociis natoque penatibus et magnis <a href="#">dis parturient montes</a>, nascetur ridiculus mus. *Aenean eu leo quam.* Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Cras mattis consectetur purus sit amet fermentum.
11+
12+
> Curabitur blandit tempus porttitor. Nullam quis risus eget urna mollis ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit.
13+
14+
Etiam porta **sem malesuada magna** mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.
15+
16+
## Heading
17+
18+
Vivamus sagittis lacus vel augue rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
19+
20+
### Sub-heading
21+
22+
Cum sociis natoque penatibus et magnis dis `code element` montes, nascetur ridiculus mus.
23+
24+
{% highlight js %}
25+
// Example can be run directly in your JavaScript console
26+
27+
// Create a function that takes two arguments and returns the sum of those arguments
28+
var adder = new Function("a", "b", "return a + b");
29+
30+
// Call the function
31+
adder(2, 6);
32+
// > 8
33+
{% endhighlight %}
34+
35+
Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa.
36+
37+
### Sub-heading
38+
39+
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
40+
41+
* Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
42+
* Donec id elit non mi porta gravida at eget metus.
43+
* Nulla vitae elit libero, a pharetra augue.
44+
45+
Donec ullamcorper nulla non metus auctor fringilla. Nulla vitae elit libero, a pharetra augue.
46+
47+
1. Vestibulum id ligula porta felis euismod semper.
48+
2. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
49+
3. Maecenas sed diam eget risus varius blandit sit amet non magna.
50+
51+
Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis.
52+
53+
-----
54+
55+
Want to see something else added? <a href="https://github.com/mdo/hyde/issues/new">Open an issue.</a>

0 commit comments

Comments
 (0)