Skip to content

Commit f6b0c59

Browse files
committed
Jekyll Project with Google Material Design Lite
0 parents  commit f6b0c59

23 files changed

+1003
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site/
2+
.sass-cache/
3+
.jekyll-metadata

_config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Site settings
2+
title: DataGraft
3+
4+
description: > # this means to ignore newlines until "baseurl:"
5+
Write an awesome description for your new site here. You can edit this
6+
line in _config.yml. It will appear in your document head meta (for
7+
Google search results) and in your feed.xml site description.
8+
baseurl: "" # the subpath of your site, e.g. /blog/
9+
url: "http://yourdomain.com" # the base hostname & protocol for your site
10+
twitter_username: jekyllrb
11+
github_username: jekyll
12+
13+
# Build settings
14+
markdown: kramdown

_includes/footer.html

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<footer class="mdl-mega-footer">
2+
<div class="mdl-mega-footer--middle-section">
3+
4+
<div class="mdl-mega-footer--drop-down-section">
5+
<input class="mdl-mega-footer--heading-checkbox" type="checkbox" checked>
6+
<h1 class="mdl-mega-footer--heading">Features</h1>
7+
<ul class="mdl-mega-footer--link-list">
8+
<li><a href="#">About</a></li>
9+
<li><a href="#">Terms</a></li>
10+
<li><a href="#">Partners</a></li>
11+
<li><a href="#">Updates</a></li>
12+
</ul>
13+
</div>
14+
15+
<div class="mdl-mega-footer--drop-down-section">
16+
<input class="mdl-mega-footer--heading-checkbox" type="checkbox" checked>
17+
<h1 class="mdl-mega-footer--heading">Details</h1>
18+
<ul class="mdl-mega-footer--link-list">
19+
<li><a href="#">Specs</a></li>
20+
<li><a href="#">Tools</a></li>
21+
<li><a href="#">Resources</a></li>
22+
</ul>
23+
</div>
24+
25+
<div class="mdl-mega-footer--drop-down-section">
26+
<input class="mdl-mega-footer--heading-checkbox" type="checkbox" checked>
27+
<h1 class="mdl-mega-footer--heading">Technology</h1>
28+
<ul class="mdl-mega-footer--link-list">
29+
<li><a href="#">How it works</a></li>
30+
<li><a href="#">Patterns</a></li>
31+
<li><a href="#">Usage</a></li>
32+
<li><a href="#">Products</a></li>
33+
<li><a href="#">Contracts</a></li>
34+
</ul>
35+
</div>
36+
37+
<div class="mdl-mega-footer--drop-down-section">
38+
<input class="mdl-mega-footer--heading-checkbox" type="checkbox" checked>
39+
<h1 class="mdl-mega-footer--heading">FAQ</h1>
40+
<ul class="mdl-mega-footer--link-list">
41+
<li><a href="#">Questions</a></li>
42+
<li><a href="#">Answers</a></li>
43+
<li><a href="#">Contact us</a></li>
44+
</ul>
45+
</div>
46+
47+
</div>
48+
49+
<div class="mdl-mega-footer--bottom-section">
50+
<div class="mdl-logo">{{ site.title }}</div>
51+
<ul class="mdl-mega-footer--link-list">
52+
<li><a href="/about/">About</a></li>
53+
<li><a href="/terms-of-use/">Terms of Use</a></li>
54+
<li><a href="/privacy-policy/">Privacy Policy</a></li>
55+
</ul>
56+
</div>
57+
58+
</footer>

_includes/head.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
6+
<title>{% if page.title %}{{ page.title }}{% endif %} - {{ site.title }}</title>
7+
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8+
9+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
10+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
11+
<link rel="stylesheet" href="https://storage.googleapis.com/code.getmdl.io/1.0.1/material.deep_purple-green.min.css" />
12+
<script src="https://storage.googleapis.com/code.getmdl.io/1.0.1/material.min.js"></script>
13+
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
14+
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
15+
</head>

_includes/header.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{% assign pages = site.pages | where: "hidenInHeader",nil | sort:"weight" %}
2+
<header class="dapaas-header mdl-layout__header mdl-layout__header--waterfall">
3+
<div class="mdl-layout__header-row">
4+
<a class="mdl-layout-title" href="{{ site.baseurl }}/">
5+
{{ site.title }}
6+
</a>
7+
<!-- Add spacer, to align navigation to the right in desktop -->
8+
<div class="mdl-layout-spacer"></div>
9+
<!-- Navigation -->
10+
<nav class="mdl-navigation">
11+
{% for page in pages %}
12+
{% if page.title %}
13+
<a class="mdl-navigation__link" href="{{ page.url | prepend: site.baseurl}}">{{ page.title}}</a>
14+
{% endif %}
15+
{% endfor %}
16+
</nav>
17+
</div>
18+
</header>
19+
<div class="mdl-layout__drawer">
20+
<a class="mdl-layout-title" href="{{ site.baseurl }}/">
21+
{{ site.title }}
22+
</a>
23+
<nav class="mdl-navigation">
24+
{% for page in pages %}
25+
{% if page.title %}
26+
<a class="mdl-navigation__link" href="{{ page.url | prepend: site.baseurl}}">{{ page.title}}</a>
27+
{% endif %}
28+
{% endfor %}
29+
</nav>
30+
</div>

_layouts/default.html

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

_layouts/iframe.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
{% include head.html %}
5+
6+
<body>
7+
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
8+
9+
{% include header.html %}
10+
11+
<div class="dapaas-iframe-layout mdl-layout__content">
12+
{{ content }}
13+
</div>
14+
</div>
15+
16+
</body>
17+
18+
</html>

_layouts/page.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
---
4+
<div class="post">
5+
6+
<header class="post-header">
7+
<h1 class="mdl-color-text--grey-600 typo-styles__demo mdl-typography--display-3">{{ page.title }}</h1>
8+
</header>
9+
10+
<article class="post-content">
11+
{{ content }}
12+
</article>
13+
14+
</div>

_layouts/post.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: default
3+
---
4+
<div class="post">
5+
6+
<header class="post-header">
7+
<h1 class="post-title">{{ page.title }}</h1>
8+
<p class="post-meta">{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
9+
</header>
10+
11+
<article class="post-content">
12+
{{ content }}
13+
</article>
14+
15+
</div>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: post
3+
title: "Welcome to Jekyll!"
4+
date: 2015-07-27 11:29:33
5+
categories: jekyll update
6+
---
7+
8+
PROU 1T
9+
10+
11+
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
12+
13+
To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.
14+
15+
Jekyll also offers powerful support for code snippets:
16+
17+
{% highlight ruby %}
18+
def print_hi(name)
19+
puts "Hi, #{name}"
20+
end
21+
print_hi('Tom')
22+
#=> prints 'Hi, Tom' to STDOUT.
23+
{% endhighlight %}
24+
25+
Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll’s dedicated Help repository][jekyll-help].
26+
27+
[jekyll]: http://jekyllrb.com
28+
[jekyll-gh]: https://github.com/jekyll/jekyll
29+
[jekyll-help]: https://github.com/jekyll/jekyll-help

0 commit comments

Comments
 (0)