├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── config.yml ├── dependabot.yml ├── funding.yml ├── no-response.yml ├── release-drafter.yml ├── settings.yml ├── stale.yml └── workflows │ ├── ci.yml │ └── codeql-analysis.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── .rubocop_todo.yml ├── Gemfile ├── LICENSE.md ├── README.md ├── docs ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md └── SECURITY.md ├── jekyll-titles-from-headings.gemspec ├── lib ├── jekyll-titles-from-headings.rb └── jekyll-titles-from-headings │ ├── context.rb │ ├── filters.rb │ ├── generator.rb │ └── version.rb ├── script ├── bootstrap └── cibuild └── spec ├── fixtures ├── site │ ├── _items │ │ ├── some-item.md │ │ └── static-file.md │ ├── _posts │ │ ├── 2016-01-01-test-2.md │ │ └── 2016-01-01-test.md │ ├── html-page.html │ ├── page-with-content-before-title.md │ ├── page-with-empty-title.md │ ├── page-with-h2.md │ ├── page-with-h3.md │ ├── page-with-md-title.md │ ├── page-with-no-empty-line-after-title.md │ ├── page-with-setex-h1.md │ ├── page-with-setex-h2.md │ ├── page-with-strip-title-false.md │ ├── page-with-strip-title-true.md │ ├── page-with-title.md │ ├── page-without-content.md │ └── page.md └── tmp │ └── h1.md ├── jekyll-titles-from-headings ├── context_spec.rb ├── filters_spec.rb └── generator_spec.rb └── spec_helper.rb /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/.github/config.yml -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/funding.yml: -------------------------------------------------------------------------------- 1 | patreon: benbalter 2 | -------------------------------------------------------------------------------- /.github/no-response.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/.github/no-response.yml -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- 1 | template: | 2 | ## What's Changed 3 | 4 | $CHANGES 5 | -------------------------------------------------------------------------------- /.github/settings.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/.github/settings.yml -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/.github/stale.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --require spec_helper 3 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.rubocop_todo.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/.rubocop_todo.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/README.md -------------------------------------------------------------------------------- /docs/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/docs/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /docs/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/docs/CONTRIBUTING.md -------------------------------------------------------------------------------- /docs/SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/docs/SECURITY.md -------------------------------------------------------------------------------- /jekyll-titles-from-headings.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/jekyll-titles-from-headings.gemspec -------------------------------------------------------------------------------- /lib/jekyll-titles-from-headings.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/lib/jekyll-titles-from-headings.rb -------------------------------------------------------------------------------- /lib/jekyll-titles-from-headings/context.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/lib/jekyll-titles-from-headings/context.rb -------------------------------------------------------------------------------- /lib/jekyll-titles-from-headings/filters.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/lib/jekyll-titles-from-headings/filters.rb -------------------------------------------------------------------------------- /lib/jekyll-titles-from-headings/generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/lib/jekyll-titles-from-headings/generator.rb -------------------------------------------------------------------------------- /lib/jekyll-titles-from-headings/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module JekyllTitlesFromHeadings 4 | VERSION = "0.5.3" 5 | end 6 | -------------------------------------------------------------------------------- /script/bootstrap: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | bundle install 4 | -------------------------------------------------------------------------------- /script/cibuild: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/script/cibuild -------------------------------------------------------------------------------- /spec/fixtures/site/_items/some-item.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/_items/some-item.md -------------------------------------------------------------------------------- /spec/fixtures/site/_items/static-file.md: -------------------------------------------------------------------------------- 1 | Static file 2 | -------------------------------------------------------------------------------- /spec/fixtures/site/_posts/2016-01-01-test-2.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/_posts/2016-01-01-test-2.md -------------------------------------------------------------------------------- /spec/fixtures/site/_posts/2016-01-01-test.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/_posts/2016-01-01-test.md -------------------------------------------------------------------------------- /spec/fixtures/site/html-page.html: -------------------------------------------------------------------------------- 1 | --- 2 | --- 3 | -------------------------------------------------------------------------------- /spec/fixtures/site/page-with-content-before-title.md: -------------------------------------------------------------------------------- 1 | --- 2 | --- 3 | 4 | Something else 5 | 6 | # Title 7 | -------------------------------------------------------------------------------- /spec/fixtures/site/page-with-empty-title.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/page-with-empty-title.md -------------------------------------------------------------------------------- /spec/fixtures/site/page-with-h2.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/page-with-h2.md -------------------------------------------------------------------------------- /spec/fixtures/site/page-with-h3.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/page-with-h3.md -------------------------------------------------------------------------------- /spec/fixtures/site/page-with-md-title.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/page-with-md-title.md -------------------------------------------------------------------------------- /spec/fixtures/site/page-with-no-empty-line-after-title.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/page-with-no-empty-line-after-title.md -------------------------------------------------------------------------------- /spec/fixtures/site/page-with-setex-h1.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/page-with-setex-h1.md -------------------------------------------------------------------------------- /spec/fixtures/site/page-with-setex-h2.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/page-with-setex-h2.md -------------------------------------------------------------------------------- /spec/fixtures/site/page-with-strip-title-false.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/page-with-strip-title-false.md -------------------------------------------------------------------------------- /spec/fixtures/site/page-with-strip-title-true.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/page-with-strip-title-true.md -------------------------------------------------------------------------------- /spec/fixtures/site/page-with-title.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/page-with-title.md -------------------------------------------------------------------------------- /spec/fixtures/site/page-without-content.md: -------------------------------------------------------------------------------- 1 | --- 2 | --- 3 | -------------------------------------------------------------------------------- /spec/fixtures/site/page.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/fixtures/site/page.md -------------------------------------------------------------------------------- /spec/fixtures/tmp/h1.md: -------------------------------------------------------------------------------- 1 | # Just an H1 -------------------------------------------------------------------------------- /spec/jekyll-titles-from-headings/context_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/jekyll-titles-from-headings/context_spec.rb -------------------------------------------------------------------------------- /spec/jekyll-titles-from-headings/filters_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/jekyll-titles-from-headings/filters_spec.rb -------------------------------------------------------------------------------- /spec/jekyll-titles-from-headings/generator_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/jekyll-titles-from-headings/generator_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benbalter/jekyll-titles-from-headings/HEAD/spec/spec_helper.rb --------------------------------------------------------------------------------