Skip to content

Commit 7bf9723

Browse files
committed
initial commit
0 parents  commit 7bf9723

20 files changed

+1094
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
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

.gitignore

Lines changed: 42 additions & 0 deletions
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

404.html

Lines changed: 57 additions & 0 deletions
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>

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
andhyde.com

LICENSE.md

Lines changed: 9 additions & 0 deletions
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.

README.md

Lines changed: 69 additions & 0 deletions
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

_config.yml

Lines changed: 12 additions & 0 deletions
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

_includes/head.html

Lines changed: 25 additions & 0 deletions
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>

_layouts/default.html

Lines changed: 42 additions & 0 deletions
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>

_layouts/post.html

Lines changed: 25 additions & 0 deletions
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>

0 commit comments

Comments
 (0)