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.
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
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.
This plugin uses jalalidate
gem for date conversion.
MIT
<div dir="rtl" lang="fa">مطلب مورد نظر</div>