Skip to content

update gemspec for jekyll 4 + documentation addition #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,27 @@ In any page or post, use #hashtags as you would normally, e.g.
> Hey <a href="/tags/AmazonGo" target="_blank" class="hashtag">#AmazonGo</a>, 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.
Expand Down
4 changes: 2 additions & 2 deletions jekyll-hashtags.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ 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"
spec.add_development_dependency "bundler", "~> 2.1"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
end