Skip to content

Commit 35b0ba7

Browse files
author
Jurgen Leschner
committed
init
0 parents  commit 35b0ba7

35 files changed

+2193
-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 Steve Smith
4+
https://github.com/orderedlist/minimal
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+
# Minimal `jekyll-theme-minimal` gem
2+
3+
Minimal is a Jekyll theme for [GitHub Pages](https://pages.github.com).
4+
5+
You can preview the theme at http://pages-theme.github.io/minimal.
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-minimal` to your `_config.yml`.
12+
13+
```yml
14+
theme: jekyll-theme-minimal
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+
@import "fonts";
42+
@import "rouge-github";
43+
@import "minimal";
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: Minimal theme
2+
description: Minimal is a theme for GitHub Pages.
3+
show_downloads: true
4+
google_analytics:
5+
theme:

_layouts/default.html

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

_sass/fonts.scss

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
@font-face {
2+
font-family: 'Noto Sans';
3+
font-weight: 400;
4+
font-style: normal;
5+
src: url('../fonts/Noto-Sans-regular/Noto-Sans-regular.eot');
6+
src: url('../fonts/Noto-Sans-regular/Noto-Sans-regular.eot?#iefix') format('embedded-opentype'),
7+
local('Noto Sans'),
8+
local('Noto-Sans-regular'),
9+
url('../fonts/Noto-Sans-regular/Noto-Sans-regular.woff2') format('woff2'),
10+
url('../fonts/Noto-Sans-regular/Noto-Sans-regular.woff') format('woff'),
11+
url('../fonts/Noto-Sans-regular/Noto-Sans-regular.ttf') format('truetype'),
12+
url('../fonts/Noto-Sans-regular/Noto-Sans-regular.svg#NotoSans') format('svg');
13+
}
14+
15+
@font-face {
16+
font-family: 'Noto Sans';
17+
font-weight: 700;
18+
font-style: normal;
19+
src: url('../fonts/Noto-Sans-700/Noto-Sans-700.eot');
20+
src: url('../fonts/Noto-Sans-700/Noto-Sans-700.eot?#iefix') format('embedded-opentype'),
21+
local('Noto Sans Bold'),
22+
local('Noto-Sans-700'),
23+
url('../fonts/Noto-Sans-700/Noto-Sans-700.woff2') format('woff2'),
24+
url('../fonts/Noto-Sans-700/Noto-Sans-700.woff') format('woff'),
25+
url('../fonts/Noto-Sans-700/Noto-Sans-700.ttf') format('truetype'),
26+
url('../fonts/Noto-Sans-700/Noto-Sans-700.svg#NotoSans') format('svg');
27+
}
28+
29+
@font-face {
30+
font-family: 'Noto Sans';
31+
font-weight: 400;
32+
font-style: italic;
33+
src: url('../fonts/Noto-Sans-italic/Noto-Sans-italic.eot');
34+
src: url('../fonts/Noto-Sans-italic/Noto-Sans-italic.eot?#iefix') format('embedded-opentype'),
35+
local('Noto Sans Italic'),
36+
local('Noto-Sans-italic'),
37+
url('../fonts/Noto-Sans-italic/Noto-Sans-italic.woff2') format('woff2'),
38+
url('../fonts/Noto-Sans-italic/Noto-Sans-italic.woff') format('woff'),
39+
url('../fonts/Noto-Sans-italic/Noto-Sans-italic.ttf') format('truetype'),
40+
url('../fonts/Noto-Sans-italic/Noto-Sans-italic.svg#NotoSans') format('svg');
41+
}
42+
43+
@font-face {
44+
font-family: 'Noto Sans';
45+
font-weight: 700;
46+
font-style: italic;
47+
src: url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot');
48+
src: url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot?#iefix') format('embedded-opentype'),
49+
local('Noto Sans Bold Italic'),
50+
local('Noto-Sans-700italic'),
51+
url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff2') format('woff2'),
52+
url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff') format('woff'),
53+
url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.ttf') format('truetype'),
54+
url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.svg#NotoSans') format('svg');
55+
}

0 commit comments

Comments
 (0)