Ruby
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib Add Gemfile. Aug 29, 2017
.gitignore Initial commit Dec 7, 2014
CONTRIBUTING.md Add contrib file. Dec 18, 2017
Gemfile Add Gemfile. Aug 29, 2017
LICENSE Initial commit Dec 7, 2014
README.md Merge branch 'master' into test Dec 18, 2017
jekyll-jalali.gemspec Use jalalidate v0.3.3 and bump version Nov 27, 2017

README.md

jekyll-jalali Gem Version

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 in Wikipedia.

Installation

Append gem jekyll-jalali to the plugins vector (formerly know as gems) of your website's _config.yml file. You can also put the jekyll-jalali.rb file inside _plugins directory of your website. You can install it from Rubygems too:

gem install jekyll-jalali

Usage

Use it as a Liquid filter inside any Jekyll template:

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

jdate accepts valid formatting parameters according to jalalidate Ruby gem.

Credits

This plugin uses jalalidate gem for date conversion.

License

MIT

در مورد فارسی‌نویسی

در هنگام گزارش مشکلات یا شرح تغییرات، فارسی نوشتن خیلی هم خوب است. فقط یک شرط دارد! متن را درون تگ راست به چپ شده بنویسید که درست نمایش داده بشود. اگر هم دوست دارید انگلیسی بنویسید هیچ اشکالی ندارد.

<div dir="rtl" lang="fa">مطلب مورد نظر</div>