From 4ef9b30e45adb14f8796fed55c465a0c694e03f8 Mon Sep 17 00:00:00 2001 From: claire Date: Tue, 9 Jun 2020 16:07:14 -0700 Subject: [PATCH 1/2] update gemspec to jekyll 4.x and configuration section to readme --- README.md | 21 +++++++++++++++++++++ jekyll-hashtags.gemspec | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b66c8b..8617d0e 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,27 @@ In any page or post, use #hashtags as you would normally, e.g. > Hey #AmazonGo, what do you think? +## Configuration + +Have your own social network? No problem. We allow you to configure the base URL of all the hashtags. + +To change it, add the following to your Jekyll configuration: + +```yml +jekyll-hashtags: + base_url: https://hengwei.me +``` + +An example of Twitter hashtags using jekyll-hashtags: + +```yml +plugins: + - jekyll-hashtags + +jekyll-hashtags: + base_url: https://twitter.com/hashtag/ +``` + ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. diff --git a/jekyll-hashtags.gemspec b/jekyll-hashtags.gemspec index 4e3b166..341097b 100644 --- a/jekyll-hashtags.gemspec +++ b/jekyll-hashtags.gemspec @@ -34,7 +34,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = ">= 2.3.0" - spec.add_dependency "jekyll", "~> 3.0" + spec.add_dependency "jekyll", "> 3.0", "< 5.0" spec.add_dependency "html-pipeline-hashtag", "~> 0.1.1" spec.add_development_dependency "bundler", "~> 1.16" From 0cb0d7908ced13b960a8afe2361d20250be0a221 Mon Sep 17 00:00:00 2001 From: claire Date: Tue, 9 Jun 2020 16:24:01 -0700 Subject: [PATCH 2/2] update bundler version to run rspec tests --- jekyll-hashtags.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jekyll-hashtags.gemspec b/jekyll-hashtags.gemspec index 341097b..ccc33a4 100644 --- a/jekyll-hashtags.gemspec +++ b/jekyll-hashtags.gemspec @@ -37,7 +37,7 @@ Gem::Specification.new do |spec| spec.add_dependency "jekyll", "> 3.0", "< 5.0" spec.add_dependency "html-pipeline-hashtag", "~> 0.1.1" - spec.add_development_dependency "bundler", "~> 1.16" + spec.add_development_dependency "bundler", "~> 2.1" spec.add_development_dependency "rake", "~> 10.0" spec.add_development_dependency "rspec", "~> 3.0" end