Skip to content

Commit f4ab6b0

Browse files
xeon-mbpxeon-mbp
authored andcommitted
added the jekyll theme along with draft posts
0 parents  commit f4ab6b0

20 files changed

+1069
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
_site
2+
.bundle
3+
.sass-cache
4+
Gemfile.lock
5+
.DS_Store
6+
vendor

Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source 'https://rubygems.org'
2+
gemspec
3+
4+
gem 'jekyll'
5+
gem 'jekyll-paginate'
6+
gem 'kramdown'
7+
gem 'pygments.rb'
8+
gem 'github-pages', group: :jekyll_plugins

README.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Jekyll Cayman theme
2+
3+
This is a [Jekyll][1] theme for [@jasonlong][2]'s [Cayman theme][4] on [GitHub Pages][3].
4+
5+
Cayman is a clean, responsive theme for [GitHub Pages](https://pages.github.com). This theme is available as an option if you use the [Automatic Page Generator](https://help.github.com/articles/creating-pages-with-the-automatic-generator/) or you can copy the template and styles to use on your own.
6+
7+
You can preview the theme at http://jasonlong.github.io/cayman-theme or with real content at http://jasonlong.github.io/geo_pattern.
8+
9+
![](http://cl.ly/image/1T3r3d18311V/content)
10+
11+
# How to use it?
12+
13+
Download the theme @ http://github.com/pietromenna/jekyll-cayman-theme/archive/master.zip
14+
15+
Unzip it and use it as a regular jekyll folder.
16+
17+
```
18+
$ unzip jekyll-cayman-theme-master.zip
19+
```
20+
21+
Get inside the newly extracted folder
22+
```
23+
$ cd jekyll-cayman-theme-master
24+
```
25+
26+
Get the required gems
27+
```
28+
$ bundle install
29+
```
30+
31+
Use it!
32+
33+
```
34+
$ jekyll serve
35+
```
36+
37+
For more details read about [Jekyll][1] on its web page.
38+
39+
# Setup
40+
41+
Some important configuration can be done in the file `_config.yml`. Please, check the Setup section in that file.
42+
43+
44+
## baseurl
45+
46+
`baseurl` parameter is required in the case the site doesn't sit on the root of the domain. For example: http://pietromenna.github.io/jekyll-cayman-theme
47+
48+
In the case above the baseurl should be set to "/jekyll-cayman-theme".
49+
50+
In the case the site sits in the root, you can leave `baseurl` as empty "".
51+
52+
# Contributing
53+
54+
Bug reports and pull requests are welcome on GitHub at https://github.com/pietromenn/jekyll-cayman-theme.
55+
56+
# Development
57+
58+
To set up your environment to develop this theme, run `bundle install`.
59+
60+
You theme is setup just like a normal Jelyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
61+
62+
# License
63+
64+
This work is licensed under a [Creative Commons Attribution 4.0 International](http://creativecommons.org/licenses/by/4.0/) license.
65+
66+
[1]: http://jekyllrb.com/
67+
[2]: https://github.com/jasonlong
68+
[3]: http://pages.github.com/
69+
[4]: https://github.com/jasonlong/cayman-theme

_config.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Setup
2+
title: AiC 2.0
3+
4+
baseurl: ""
5+
paginate: 1
6+
7+
# About/contact
8+
author:
9+
name: Jonathan Rivalan - AiC Project Manager
10+
url: http://alterway.fr
11+
12+
# Gems
13+
gems:
14+
- jekyll-paginate
15+
16+
#Others
17+
markdown: kramdown
18+
19+

_includes/head.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<head>
2+
<meta charset="UTF-8">
3+
<title>{{ site.title }}</title>
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
<meta name="theme-color" content="#157878">
6+
<link rel="stylesheet" href="{{ site.baseurl }}/css/normalize.css">
7+
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
8+
<link rel="stylesheet" href="{{ site.baseurl }}/css/cayman.css">
9+
<link rel="stylesheet" href="{{ site.baseurl }}/css/style.css">
10+
</head>

_includes/page-footer.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<footer class="site-footer">
2+
<span class="site-footer-owner"><a href="{{ site.url }}">{{ site.title }}</a> is maintained by <a href="{{ site.author.url }}">{{ site.author.name }}</a>.</span>
3+
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the <a href="https://github.com/pietromenna/jekyll-cayman-theme">Cayman theme</a> by <a href="http://github.com/jasonlong">Jason Long</a>.</span>
4+
</footer>

_includes/page-header.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<section class="page-header">
2+
<h1 class="project-name">AiC <span>2.0</span></h1>
3+
4+
{% if page.lang == "en" %}
5+
<h2 class="project-tagline">Test your Android applications in the Cloud</h2>
6+
<a href="#" class="btn">View the code</a>
7+
<a href="#" class="btn">View the demo</a>
8+
<a href="#" class="btn">Ask for web access</a>
9+
{% elsif page.lang == "fr" %}
10+
<h2 class="project-tagline">Testez vos applications Android dans le Cloud</h2>
11+
<a href="#" class="btn">Voir les sources</a>
12+
<a href="#" class="btn">Voir la démo</a>
13+
<a href="#" class="btn">Demander un accès web</a>
14+
{% endif %}
15+
16+
17+
18+
<!-- lang choice -->
19+
{% assign posts=site.posts | where:"ref", page.ref | sort: 'lang' %}
20+
{% for post in posts %}
21+
<a href="{{ post.url }}" class="{{ post.lang }} btn">{{ post.langTitle }}</a>
22+
{% endfor %}
23+
24+
{% assign pages=site.pages | where:"ref", page.ref | sort: 'lang' %}
25+
{% for page in pages %}
26+
<a href="{{ page.url }}" class="{{ page.lang }} btn">{{ page.langTitle }}</a>
27+
{% endfor %}
28+
29+
</section>

_layouts/default.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
3+
<html lang="{{page.lang}}">
4+
5+
{% include head.html %}
6+
7+
<body>
8+
{% include page-header.html %}
9+
10+
<section class="main-content">
11+
12+
{{ content }}
13+
14+
{% include page-footer.html %}
15+
16+
</section>
17+
18+
</body>
19+
</html>

_layouts/page.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
layout: default
3+
---
4+
5+
{{ content }}

_layouts/post.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: default
3+
---
4+
<h2>{{ page.title }}</h2>
5+
<p class="meta">{{ page.date | date_to_string }}</p>
6+
7+
{{ content }}

0 commit comments

Comments
 (0)