Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mslinn/jekyll-new_post
Jekyll subcommand to make a new post in any desired collection
https://github.com/mslinn/jekyll-new_post
jekyll jekyll-plugin
Last synced: about 2 months ago
JSON representation
Jekyll subcommand to make a new post in any desired collection
- Host: GitHub
- URL: https://github.com/mslinn/jekyll-new_post
- Owner: mslinn
- License: mit
- Created: 2022-05-10T12:39:54.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-26T01:38:50.000Z (5 months ago)
- Last Synced: 2024-10-12T09:45:23.805Z (3 months ago)
- Topics: jekyll, jekyll-plugin
- Language: Ruby
- Homepage: https://mslinn.com/jekyll/10100-jekyll-plugin-background.html
- Size: 491 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# `Jekyll::NewPost` [![Gem Version](https://badge.fury.io/rb/jekyll-new_post.svg)](https://badge.fury.io/rb/jekyll-new_post)
This project defines a Jekyll subcommand called `new_post`.
This Jekyll subcommand must be installed into a Jekyll project before it can be used.
The `new_post` subcommand will not be available outside that project.## Installation
Edit the `Gemfile` of your Jekyll site.
Specify `jekyll-new_post` in the `jekyll_plugins` group, like this:```ruby
group :jekyll_plugins do
gem 'jekyll-new_post'
end
```And then execute:
```shell
$ bundle
```## Usage
The `demo` subdirectory is a small Jekyll site,
pre-configured with the `new_post` Jekyll subcommand.```shell
$ cd demo$ jekyll new_post
```## Development
After checking out the repo, run `bin/setup` to install dependencies.
You can also run `bin/console` for an interactive prompt that will allow you to experiment.To install this gem onto your local machine, run:
```shell
$ bundle exec rake install
```To release a new version, update the version number in `version.rb`, and then run:
```shell
$ bundle exec rake release
```The above does the following:
- Creates a git tag for the version
- Pushes git commits and the created tag
- Pushes the `.gem` file to [rubygems.org](https://rubygems.org).## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/mslinn/jekyll-new_post.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).