jambi 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54b2a005a289f100aeb7b274bfd5897ce74e9541
4
- data.tar.gz: 308c69b17909cc4313cdea829d824b7dd924e6e0
3
+ metadata.gz: 65ce58c537f627f70280d70cdab1723b6c7d3e78
4
+ data.tar.gz: b63b0453dc20c02d536612fb0d6c9c054296863e
5
5
  SHA512:
6
- metadata.gz: a59ed901107dd4a6cd77bc4ab80c813e261f16cf14b32659abfc5db7fcd2a4e132a117681c8b95d7d2db76293289ceff06fcbcd01fa863e17432a6dcc77fb1ec
7
- data.tar.gz: 4a0b7f4207346789ddfd5483ceb0e15069bc61cfad482dc8c78ddbbab035f2fc507518bc51cc39e8b34e90ce4ced7e76ffda36e1ada8a26b3d6c475cbbec32ef
6
+ metadata.gz: dfb84122f60758c43fdbe116aab95d2cc1feed44b6edbef00483d96bf904a2af21f2d58ef47611bf892a9c32fe0b99a2be7bfba0dee8d7fd1c2a9782ad404607
7
+ data.tar.gz: 3d6aefdeb0157791538c99f64f0e8e043aab603d73c14d635f3da4caefcff564d95dcf18b822d5e794d17214d5ebc90d04332e996ccc85eee1fdd7d870e6a59b
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # jambi
2
2
 
3
- A minimal Jekyll theme for documenting things you've built
3
+ A minimal Jekyll theme for documenting things you've created.
4
4
 
5
5
  ## Installation
6
6
 
@@ -26,7 +26,52 @@ Or install it yourself as:
26
26
 
27
27
  ## Usage
28
28
 
29
- TODO: Write usage instructions here. Describe your available layouts, includes, and/or sass.
29
+ ## Customizing
30
+
31
+ ### Configuration variables
32
+
33
+ After installation, copy (then customize) these settings into your site's `_.config.yml` file:
34
+
35
+ ```yaml
36
+ # Jambi settings
37
+ me:
38
+ name: Your Name
39
+ tagline: These are the things I create
40
+ photo: "/images/header/me.jpg"
41
+ google_analytics: UA-XXXXXXXXX-X
42
+ excerpt_separator: <!--more--> # you can specify your own separator, of course.
43
+ permalink: pretty
44
+ highlighter: rouge
45
+ sass:
46
+ style: compressed
47
+ defaults:
48
+ -
49
+ scope:
50
+ path: ""
51
+ type: "posts"
52
+ values:
53
+ layout: "post"
54
+ -
55
+ scope:
56
+ path: ""
57
+ type: "pages"
58
+ values:
59
+ layout: "page"
60
+ ```
61
+
62
+ ### Stylesheet
63
+
64
+ If you'd like to add your own custom styles:
65
+
66
+ 1. Create a file called `/assets/css/style.scss` in your site
67
+ 2. Add the following content to the top of the file, exactly as shown:
68
+ ```scss
69
+ ---
70
+ ---
71
+
72
+ @import "{{ site.theme }}";
73
+ ```
74
+ 3. Add any custom CSS (or Sass, including imports) you'd like immediately after the `@import` line
30
75
 
31
76
  ## Contributing
32
77
 
@@ -1,14 +1,14 @@
1
1
  <p class="usernames">
2
- {% if site.me.username.github %}
3
- <a href="https://github.com/{{ site.me.username.github }}"><i class="github"></i></a>
2
+ {% if site.github_username %}
3
+ <a href="https://github.com/{{ site.github_username }}"><i class="github"></i></a>
4
4
  {% endif %}
5
- {% if site.me.username.twitter %}
6
- <a href="https://twitter.com/{{ site.me.username.twitter }}"><i class="twitter"></i></a>
5
+ {% if site.twitter_username %}
6
+ <a href="https://twitter.com/{{ site.twitter_username }}"><i class="twitter"></i></a>
7
7
  {% endif %}
8
- {% if site.me.username.linkedin %}
9
- <a href="https://linkedin.com/{{ site.me.username.linkedin }}"><i class="linkedin"></i></a>
8
+ {% if site.linkedin_username %}
9
+ <a href="https://linkedin.com/{{ site.linkedin_username }}"><i class="linkedin"></i></a>
10
10
  {% endif %}
11
- {% if site.me.email %}
12
- <a class="email" href="mailto:{{ site.me.email }}">{{ site.me.email }}</a>
11
+ {% if site.email %}
12
+ <a class="email" href="mailto:{{ site.email }}">{{ site.email }}</a>
13
13
  {% endif %}
14
14
  </p>
@@ -0,0 +1,11 @@
1
+ {% if site.google_analytics %}
2
+ <script>
3
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
7
+
8
+ ga('create', '{{ site.google_analytics }}', 'auto');
9
+ ga('send', 'pageview');
10
+ </script>
11
+ {% endif %}
@@ -0,0 +1,12 @@
1
+ <header>
2
+ <h1 itemprop="name headline">{{ include.post.title | escape }}</h1>
3
+ {% if include.post.subtitle %}
4
+ <h2>{{ include.post.subtitle | escape }}</h2>
5
+ {% endif %}
6
+ <p class="info">
7
+ <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ include.post.date | date: "%b %-d, %Y" }}</time>
8
+ {% if include.post.category %}
9
+ <category>{{ include.post.category }}</category>
10
+ {% endif %}
11
+ </p>
12
+ </header>
@@ -1,21 +1,11 @@
1
- <article>
1
+ <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
2
2
  <a class="article-link" href="{{ include.post.url }}">
3
- <header>
4
- <h1>{{ include.post.title | escape }}</h1>
5
- {% if include.post.subtitle %}
6
- <h2>{{ include.post.subtitle | escape }}</h2>
7
- {% endif %}
8
- <p class="info">
9
- <time>{{ include.post.date | date: "%b %-d, %Y" }}</time>
10
- {% if include.category %}
11
- <category>{{ include.post.category }}</category>
12
- {% endif %}
13
- </p>
14
- </header>
3
+ {% include article-header.html post=include.post %}
15
4
  <content>
16
5
  <excerpt>
17
6
  {{ include.post.excerpt }}
18
7
  </excerpt>
8
+ <ellipsis>...</ellipsis>
19
9
  </content>
20
10
  </a>
21
11
  </article>
@@ -5,4 +5,7 @@
5
5
  &copy; {{ 'now' | date: "%Y" }} {{ site.me.name }}
6
6
  </p>
7
7
  </div>
8
- </header>
8
+ </footer>
9
+ {% if jekyll.environment == "production" %}
10
+ {% include analytics.html %}
11
+ {% endif %}
@@ -2,15 +2,7 @@
2
2
  layout: default
3
3
  ---
4
4
  <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
5
- <header>
6
- <h1 itemprop="name headline">{{ page.title | escape }}</h1>
7
- {% if page.subtitle %}
8
- <h2>{{ page.subtitle | escape }}</h2>
9
- {% endif %}
10
- <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11
- {{ page.date | date: "%b %-d, %Y" }}
12
- </time>
13
- </header>
5
+ {% include article-header.html post=page %}
14
6
  <content itemprop="articleBody">
15
7
  {{ content }}
16
8
  </content>
@@ -18,5 +18,9 @@ article-list {
18
18
  excerpt {
19
19
 
20
20
  }
21
+
22
+ ellipsis {
23
+ color: $color-gray;
24
+ }
21
25
  }
22
26
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jambi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Draper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-10 00:00:00.000000000 Z
11
+ date: 2017-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -62,6 +62,8 @@ files:
62
62
  - LICENSE.txt
63
63
  - README.md
64
64
  - _includes/accounts.html
65
+ - _includes/analytics.html
66
+ - _includes/article-header.html
65
67
  - _includes/article-summary.html
66
68
  - _includes/footer.html
67
69
  - _includes/head.html
@@ -116,5 +118,5 @@ rubyforge_project:
116
118
  rubygems_version: 2.6.11
117
119
  signing_key:
118
120
  specification_version: 4
119
- summary: A minimal Jekyll theme for documenting things you've built
121
+ summary: A minimal Jekyll theme for documenting things you've created.
120
122
  test_files: []