Skip to content

Commit 4b621d9

Browse files
author
Jurgen Leschner
committed
init
0 parents  commit 4b621d9

16 files changed

+949
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site
2+
.sass-cache
3+
Gemfile.lock

Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
gem "github-pages", :github => "github/pages-gem", :branch => "jekyll-v3-3-0"
4+
gemspec

LICENSE

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Creative Commons Attribution-ShareAlike 3.0 Unported License. (CC BY-SA 3.0)
2+
3+
Copyright (c) 2013 Diana Mounter
4+
https://github.com/broccolini/dinky
5+
6+
This work is licensed under the
7+
Creative Commons Attribution-ShareAlike 3.0 Unported License.
8+
9+
To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

README.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Dinky `jekyll-theme-dinky` gem
2+
3+
Dinky is a Jekyll theme for [GitHub Pages](https://pages.github.com).
4+
5+
You can preview the theme at http://pages-theme.github.io/dinky.
6+
7+
### Usage
8+
9+
This theme was ported from the GitHub Automatic Page Generator to a Jekyll v3.3 theme gem.
10+
11+
To use it on a Pages site, add `theme: jekyll-theme-dinky` to your `_config.yml`.
12+
13+
```yml
14+
theme: jekyll-theme-dinky
15+
title: Custom title
16+
description: Custom description.
17+
show_downloads: true
18+
google_analytics:
19+
```
20+
21+
- To override the repository name or description from GitHub used in the header, set a `title` or `description`.
22+
- Set `show_downloads` to `false` to hide the download buttons in the header.
23+
- Set `google_analytics` to your tracking ID to enable pageview tracking.
24+
25+
This theme includes a single `default` layout. Markdown files should be prefixed with the following frontmatter.
26+
27+
```
28+
---
29+
layout: default
30+
---
31+
32+
```
33+
34+
#### CSS
35+
36+
For CSS customization, create your own `/assets/css/styles.scss` in your project to replace the one from this theme, and override selected stylesheet properties.
37+
38+
```scss
39+
---
40+
---
41+
42+
@import "rouge-github";
43+
@import 'dinky';
44+
```
45+
46+
#### Syntax Highlighting
47+
48+
[Rouge](http://rouge.jneen.net/) is the default highlighter in Jekyll 3. This theme includes the `github` stylesheet from Rouge.
49+
50+
To switch syntax highlighting colors to say `monokai`, install the `rouge` gem and run the following on the command line.
51+
52+
```
53+
mkdir _scss
54+
rougify style monokai > _scss/rouge-monokai.scss
55+
```
56+
57+
Then replace `rouge-github` with `rouge-monokai` in `/assets/css/styles.scss`
58+
59+
Other pygments highlighter themes should work as well.

_config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
title: Dinky theme
2+
description: Dinky is a red hot theme for GitHub Pages.
3+
show_downloads: true
4+
google_analytics:
5+
theme:

_layouts/default.html

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6+
<title>{{ site.title | default: site.github.repository_name }} by {{ site.github.owner_name }}</title>
7+
<link href='https://fonts.googleapis.com/css?family=Arvo:400,700,400italic' rel='stylesheet' type='text/css'>
8+
<link rel="stylesheet" href="{{ '/assets/css/styles.css' | relative_url }}">
9+
<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script>
10+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
11+
<!--[if lt IE 9]>
12+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13+
<![endif]-->
14+
</head>
15+
<body>
16+
<div class="wrapper">
17+
<header>
18+
<h1 class="header">{{ site.title | default: site.github.repository_name }}</h1>
19+
<p class="header">{{ site.description | default: site.github.project_tagline }}</p>
20+
21+
<ul>
22+
{% if site.show_downloads %}
23+
<li class="download"><a class="buttons" href="{{ site.github.zip_url }}">Download ZIP</a></li>
24+
<li class="download"><a class="buttons" href="{{ site.github.tar_url }}">Download TAR</a></li>
25+
{% endif %}
26+
<li><a class="buttons github" href="{{ site.github.repository_url }}">View On GitHub</a></li>
27+
</ul>
28+
29+
{% if site.github.is_project_page %}
30+
<p class="header">This project is maintained by <a class="header name" href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
31+
{% endif %}
32+
33+
{% if site.github.is_user_page %}
34+
<ul>
35+
<li><a class="buttons github" href="{{ site.github.repository_url }}">GitHub Profile</a></li>
36+
</ul>
37+
{% endif %}
38+
</header>
39+
40+
<section>
41+
{{ content }}
42+
</section>
43+
44+
<footer>
45+
<p><small>Hosted on <a href="https://pages.github.com">GitHub Pages</a> using the Dinky theme</small></p>
46+
</footer>
47+
</div>
48+
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
49+
{% if site.google_analytics %}
50+
<script type="text/javascript">
51+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
52+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
53+
</script>
54+
<script type="text/javascript">
55+
try {
56+
var pageTracker = _gat._getTracker("{{ site.google_analytics }}");
57+
pageTracker._trackPageview();
58+
} catch(err) {}
59+
</script>
60+
{% endif %}
61+
</body>
62+
</html>

0 commit comments

Comments
 (0)