Skip to content

Commit

Permalink
Add Gemfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdisadeghi committed Aug 29, 2017
1 parent c544d05 commit 3af8cc4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source "https://rubygems.org"
gemspec
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jekyll-jalali
This plugin adds a new filter to Jekyll called `jdate`. Using this filter the given dates will be converted to Jalali which is being used in Iran and Afghanistan. For more information see [Iranian Calendars Entry](http://en.wikipedia.org/wiki/Iranian_calendars) in Wikipedia.


#Requirements
# Requirements
This plugin uses `jalalidate` gem in background, therefore the following section should be added to `_config.yml`:
```
gems:
Expand All @@ -13,11 +13,11 @@ gems:

see [https://github.com/aziz/jalalidate](https://github.com/aziz/jalalidate).

#Installation
# Installation

Simply, put the ``jdate.rb`` into ``_plugins`` directory on your site's root.

#Usage
# Usage
```{{ page.date | jdate: "%A %d %b %Y"}}```

*jdate* accepts valid formatting parameters according to *jalalidate* Ruby gem.
15 changes: 15 additions & 0 deletions jekyll-jalali.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# coding: utf-8

Gem::Specification.new do |spec|
spec.name = "jekyll-jalali"
spec.version = "0.1.0"
spec.authors = ["Mehdi Sadeghi"]
spec.email = ["[email protected]"]
spec.summary = %q{Jalali date plugin for Jekyll.}
spec.homepage = "https://github.com/mehdisadeghi/jekyll-jalali"
spec.license = "MIT"
spec.files = ["lib/jekyll-jalali.rb"]
spec.add_runtime_dependency "jalalidate", "~> 0.3"
spec.add_development_dependency "bundler", "~> 1.12"
spec.add_development_dependency "rake", "~> 10.0"
end
File renamed without changes.

0 comments on commit 3af8cc4

Please sign in to comment.