Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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

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

مطلب مورد نظر