jekyll-theme-charcoal 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/_layouts/default.html +23 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65be1c1bbd0e8c3022bfccad5b7886030d62931d
|
4
|
+
data.tar.gz: 23aa40d3b4848989659261ac0d38e44669be9462
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8491b572fd35a316eb3f26f803c1cf2ff0f4ffb033fe7f15d29b329f8b2ad17100f48dca3c7839084952be368892b7bc0c95d7ab71c6aadc8febba8ca300a73
|
7
|
+
data.tar.gz: e41420e00f48a6719df73c3b238c782112b2884d2f1ba70b0f2b97a4661f07724c0629bdd88cf23d2011ab95f0c17ebe4de409375719649d2e0c34f3b7ba17a2
|
data/README.md
CHANGED
@@ -51,8 +51,9 @@ $ bundle install
|
|
51
51
|
In addition to the standard jekyll front matter, the charcoal theme will use the following variables on each page:
|
52
52
|
|
53
53
|
```yaml
|
54
|
-
toc: true # Adds a table of contents to the left sidebar of the page
|
55
54
|
bare: true # Make this page by not displaying author information, and ensuring there's no table of contents
|
55
|
+
toc: true # Adds a table of contents to the left sidebar of the page
|
56
|
+
credits: true # Adds credits for the page including the author and date to the title
|
56
57
|
author_name: Greg Gibeling # Sets the name of the author
|
57
58
|
author_url: https://github.com/gdgib/ # An optional link to a page specific to the author
|
58
59
|
```
|
@@ -68,7 +69,9 @@ You can configure a default author for pages and posts in your `_config.yml`:
|
|
68
69
|
|
69
70
|
```yaml
|
70
71
|
image: /images/image.jpg # Adds a small thumbnail image to the site header (a picture or logo)
|
71
|
-
|
72
|
+
bare: false # Determines whether pages are bare by default
|
73
|
+
toc: true # Determines whether to adds a table of contents to the left sidebar of the page by default
|
74
|
+
credits: true # Determines whether credits including the author and date to the title of the page by default
|
72
75
|
author_name: Greg Gibeling # Sets the name of the default author, which can be overriden on each page
|
73
76
|
author_url: https://github.com/gdgib/ # An optional link to a page specific to the default author, can be overriden on each page
|
74
77
|
```
|
data/_layouts/default.html
CHANGED
@@ -6,17 +6,35 @@
|
|
6
6
|
{% include header.html %}
|
7
7
|
<div class="wrapper">
|
8
8
|
<section>
|
9
|
+
{% if page.bare == nil %}
|
10
|
+
{% assign bare = site.bare %}
|
11
|
+
{% else %}
|
12
|
+
{% assign bare = page.bare %}
|
13
|
+
{% endif %}
|
14
|
+
{% if page.credits == nil %}
|
15
|
+
{% assign credits = site.credits %}
|
16
|
+
{% else %}
|
17
|
+
{% assign credits = page.credits %}
|
18
|
+
{% endif %}
|
19
|
+
{% if page.toc == nil %}
|
20
|
+
{% assign toc = site.toc %}
|
21
|
+
{% else %}
|
22
|
+
{% assign toc = page.toc %}
|
23
|
+
{% endif %}
|
24
|
+
|
25
|
+
{% unless bare %}
|
9
26
|
<div id="title">
|
10
27
|
<h1>{{ page.title }}</h1>
|
11
28
|
<hr>
|
12
|
-
{%
|
13
|
-
|
14
|
-
|
15
|
-
{%
|
29
|
+
{% if credits %}
|
30
|
+
<span class="credits left">By <a href="{{ page.author_url | default: site.author_url }}">{{ page.author_name | default: site.author_name }}</a></span>
|
31
|
+
<span class="credits right">{{ page.date | date: date_format }}</span>
|
32
|
+
{% endif %}
|
16
33
|
</div>
|
34
|
+
{% endunless %}
|
17
35
|
|
18
36
|
<div class="content">
|
19
|
-
{% unless
|
37
|
+
{% unless bare %}{% if toc %}
|
20
38
|
<div class="sidebar">
|
21
39
|
<h1 id="contents">Contents</h1>
|
22
40
|
{% include toc.html html=content %}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-charcoal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Gibeling
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|