jekyll-titles-from-headings 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03a9d910498b98aa8270a812d6556c650a3de904
4
- data.tar.gz: f62cf26871270ea41f580229a678d5e9ad3fad86
3
+ metadata.gz: 55aa1a8e1024cbb263e92e271a7e07c264caf1dc
4
+ data.tar.gz: '0959d9126850c656f4d8d155358af93f860fa9d8'
5
5
  SHA512:
6
- metadata.gz: eb6d07671c366844a84d4a08bc58326941dc95333434003fd18a6760c8dea615a1d93590d527fc9b91fce7dfb9b003c219baf9c470d5332fd0bdbfa21d9a9c86
7
- data.tar.gz: 108b4be4f606a336af5def3f42ca14da2ff04e224dd163c3de6e31d5c88c488ae6e3201b82e20d5aa4ba63d5a200f86570227617ce846af9573a7fb66098c9b0
6
+ metadata.gz: 5fc7f28fb71372470883a355be4b475271e36d96ac8a4bc51676a21cebe07bf8010b39d37f4453299e4bb90d5a9271f936e99794716b89dc00f030e293e1b225
7
+ data.tar.gz: b93140807298f9c0b78801be3e22c833699748f874aa534d9b3f7b73326e5ff94fd55bb2bc078ae8832569b3e23d8e900696b77028784734fbc9992800d37527
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016 Ben Balter
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # Jekyll Title from Headings
2
+
3
+ *A Jekyll plugin to pull page the title from fist Markdown heading when none is specified.*
4
+
5
+ [![Build Status](https://travis-ci.org/benbalter/jekyll-title-from-headings.svg?branch=master)](https://travis-ci.org/benbalter/jekyll-title-from-headings)
6
+
7
+ ## What it does
8
+
9
+ If you have a Jekyll page that doesn't have a title specified in the YAML front matter, but the first non-whitespace line in a Markdown H1, H2, H3, this plugin instructs Jekyll to use that first heading as the page's title.
10
+
11
+ ## Why
12
+
13
+ Because lots of plugins and templates rely on `page.title`, but if you're using something like [Jekyll Optional Front Matter](https://github.com/benbalter/jekyll-optional-front-matter), you'd have to add front matter, just to get the title, which you're already specifying in the document.
14
+
15
+ Additionally, this allows you to store the title semantically, in the document itself, so that it's readable both as Markdown and when rendered, while still having the title be machine readible for things like [Jekyll SEO Tag](https://github.com/benbalter/jekyll-seo-tag).
16
+
17
+ ## Usage
18
+
19
+ 1. Add the following to your site's Gemfile:
20
+
21
+ ```ruby
22
+ gem 'jekyll-titles-from-headings'
23
+ ```
24
+
25
+ 2. Add the following to your site's config file:
26
+
27
+ ```yml
28
+ gems:
29
+ - jekyll-titles-from-headings
30
+ ```
@@ -1,3 +1,3 @@
1
1
  module JekyllTitlesFromHeadings
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-titles-from-headings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-21 00:00:00.000000000 Z
11
+ date: 2016-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -59,6 +59,8 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - LICENSE.md
63
+ - README.md
62
64
  - lib/jekyll-titles-from-headings.rb
63
65
  - lib/jekyll-titles-from-headings/generator.rb
64
66
  - lib/jekyll-titles-from-headings/version.rb