jekyll-theme-foundation 0.2.5 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +34 -7
- data/_includes/disqus-comments.html +17 -0
- data/_includes/head.html +4 -0
- data/_layouts/home.html +31 -1
- data/_layouts/page.html +3 -1
- data/_layouts/post.html +22 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 413f38e6756b8c494f05d08ed600100afc026c5c
|
4
|
+
data.tar.gz: cdc2d67a8a28a018b1deaa15a0e386c7adca3c9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d4565f4d2ece7dedee5ffab2d778d985739f0f72003777236875535329333e1c86c9910312abd1e1b93bd9ce82f704d7872635574f3f3796799218b5d4a49f1
|
7
|
+
data.tar.gz: b5514dde7fac60f988a23511e570f783ebcc2f0614d543f8afe037fb7ed554ee5bcf88e3ae0094f973f6fe6fae49d6ecc9e1e4c7cfd20fd731f84ea767ecb459
|
data/README.md
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
# jekyll-theme-foundation
|
2
2
|
|
3
|
-
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes` and your sass in `_sass`. To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
3
|
## Installation
|
8
4
|
|
9
5
|
Add this line to your Jekyll site's `Gemfile`:
|
@@ -28,11 +24,43 @@ Or install it yourself as:
|
|
28
24
|
|
29
25
|
## Usage
|
30
26
|
|
31
|
-
|
27
|
+
### Layouts
|
28
|
+
Refers to files within the `_layouts` directory, that define the markup for your theme.
|
29
|
+
|
30
|
+
- `default.html` — The base layout that lays the foundation for subsequent layouts. The derived layouts inject their contents into this file at the line that says {{ content }} and are linked to this file via FrontMatter declaration layout: default.
|
31
|
+
- `home.html` — The layout for your landing-page / home-page / index-page.
|
32
|
+
- `page.html` — The layout for your documents that contain FrontMatter, but are not posts.
|
33
|
+
- `post.html` — The layout for your posts.
|
34
|
+
|
35
|
+
### Includes
|
36
|
+
Refers to snippets of code within the `_includes` directory that can be inserted in multiple layouts (and another include-file as well) within the same theme-gem.
|
37
|
+
|
38
|
+
- `disqus-comments.html` — Code to markup disqus comment box.
|
39
|
+
- `footer.html` — Defines the site's footer section.
|
40
|
+
- `google-analytics.html` — Inserts Google Analytics module (active only in production environment).
|
41
|
+
- `head.html` — Code-block that defines the ``<head></head>`` in default layout.
|
42
|
+
- `header.html` — Defines the site's main header section. By default, pages with a defined title attribute will have links displayed here.
|
43
|
+
|
44
|
+
### Sass
|
45
|
+
|
46
|
+
Refers to `.scss` files within the `_sass` directory that define the theme's styles.
|
47
|
+
|
48
|
+
Foundation 6.4.
|
49
|
+
|
50
|
+
Changing theme colors and layout.
|
51
|
+
|
52
|
+
Create two folders inside your root folder.
|
53
|
+
|
54
|
+
|
55
|
+
Add `assets/css/main.scss` inside your project.
|
56
|
+
|
57
|
+
Add `_sass/settings.scss` inside the project folder. I
|
58
|
+
|
59
|
+
|
32
60
|
|
33
61
|
## Contributing
|
34
62
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
63
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/gnarlacious/jekyll-theme-foundation. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
64
|
|
37
65
|
## Development
|
38
66
|
|
@@ -45,4 +73,3 @@ When your theme is released, only the files in `_layouts`, `_includes`, and `_sa
|
|
45
73
|
## License
|
46
74
|
|
47
75
|
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
48
|
-
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{% if page.comments != false and jekyll.environment == "production" %}
|
2
|
+
|
3
|
+
<div id="disqus_thread"></div>
|
4
|
+
<script>
|
5
|
+
var disqus_config = function () {
|
6
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
7
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
8
|
+
};
|
9
|
+
(function() {
|
10
|
+
var d = document, s = d.createElement('script');
|
11
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
12
|
+
s.setAttribute('data-timestamp', +new Date());
|
13
|
+
(d.head || d.body).appendChild(s);
|
14
|
+
})();
|
15
|
+
</script>
|
16
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
17
|
+
{% endif %}
|
data/_includes/head.html
CHANGED
@@ -11,6 +11,10 @@
|
|
11
11
|
{% include google-analytics.html %}
|
12
12
|
{% endif %}
|
13
13
|
|
14
|
+
{% if site.google_fonts != nil %}
|
15
|
+
<link href="https://fonts.googleapis.com/css?family={{ site.google_fonts }}" rel="stylesheet">
|
16
|
+
{% endif %}
|
17
|
+
|
14
18
|
{% if site.styles != nil %}
|
15
19
|
{% assign file_name = site.styles.file | default: 'main.css' %}
|
16
20
|
<link rel="stylesheet" href="{{ file_name | prepend: site.styles.dir | relative_url }}">
|
data/_layouts/home.html
CHANGED
@@ -2,4 +2,34 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
|
5
|
-
|
5
|
+
<div class="grid-container">
|
6
|
+
|
7
|
+
<section>
|
8
|
+
{{ content }}
|
9
|
+
</section>
|
10
|
+
|
11
|
+
<section>
|
12
|
+
<h1>Posts</h1>
|
13
|
+
<div class="grid-y" style="height: 100%">
|
14
|
+
{% for post in site.posts %}
|
15
|
+
<div class="cell">
|
16
|
+
<div class="card">
|
17
|
+
<div class="card-section">
|
18
|
+
<h2><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h2>
|
19
|
+
{% if page.excerpt %}
|
20
|
+
{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}
|
21
|
+
{% elsif page.description %}
|
22
|
+
{{ page.description }}
|
23
|
+
{% else %}{% endif %}
|
24
|
+
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
|
25
|
+
<small>{{ post.date | date: date_format }}</small>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
{% endfor %}
|
30
|
+
</div>
|
31
|
+
</section>
|
32
|
+
|
33
|
+
<p>Subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
|
34
|
+
|
35
|
+
</div>
|
data/_layouts/page.html
CHANGED
data/_layouts/post.html
CHANGED
@@ -2,4 +2,25 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
|
5
|
-
|
5
|
+
<article class="grid-container" itemscope itemtype="http://schema.org/BlogPosting">
|
6
|
+
|
7
|
+
<header>
|
8
|
+
<h1 itemprop="name headline">{{ page.title | escape }}</h1>
|
9
|
+
<p>
|
10
|
+
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
11
|
+
{% assign date_format = site.jekyll-theme-foundation.date_format | default: "%b %-d, %Y" %}
|
12
|
+
{{ page.date | date: date_format }}
|
13
|
+
</time>
|
14
|
+
{% if page.author %}
|
15
|
+
• <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
|
16
|
+
{% endif %}</p>
|
17
|
+
</header>
|
18
|
+
|
19
|
+
<div itemprop="articleBody">
|
20
|
+
{{ content }}
|
21
|
+
</div>
|
22
|
+
|
23
|
+
{% if site.disqus.shortname %}
|
24
|
+
{% include disqus-comments.html %}
|
25
|
+
{% endif %}
|
26
|
+
</article>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-foundation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- whosdustin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -75,6 +75,7 @@ extra_rdoc_files: []
|
|
75
75
|
files:
|
76
76
|
- LICENSE.txt
|
77
77
|
- README.md
|
78
|
+
- _includes/disqus-comments.html
|
78
79
|
- _includes/google-analytics.html
|
79
80
|
- _includes/head.html
|
80
81
|
- _includes/header.html
|