Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mehdisadeghi/jekyll-jalali
Jalali date plugin for Jekyll
https://github.com/mehdisadeghi/jekyll-jalali
iranian-calendar jalali jekyll jekyll-plugin liquid persian-calendar
Last synced: 24 days ago
JSON representation
Jalali date plugin for Jekyll
- Host: GitHub
- URL: https://github.com/mehdisadeghi/jekyll-jalali
- Owner: mehdisadeghi
- License: mit
- Created: 2014-12-07T21:25:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-21T10:01:09.000Z (almost 5 years ago)
- Last Synced: 2024-10-12T19:36:04.131Z (about 1 month ago)
- Topics: iranian-calendar, jalali, jekyll, jekyll-plugin, liquid, persian-calendar
- Language: Ruby
- Homepage:
- Size: 9.77 KB
- Stars: 33
- Watchers: 5
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
jekyll-jalali [![Gem Version](https://badge.fury.io/rb/jekyll-jalali.svg)](https://badge.fury.io/rb/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.
# 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`](https://github.com/aziz/jalalidate) gem for date conversion.# License
MIT## در مورد فارسینویسی
در هنگام گزارش مشکلات یا شرح تغییرات، فارسی نوشتن خیلی هم خوب است. فقط یک شرط دارد! متن را درون تگ راست به چپ شده بنویسید که درست نمایش داده بشود. اگر هم دوست دارید انگلیسی بنویسید هیچ اشکالی ندارد.
مطلب مورد نظر