<commit_before># Hoor

> Hoor is the Persian word for sun.

Hoor is a command line tool for adding Shamsi date feature to [Hugo](http://gohugo.io)
based websites.

## How it works?

Due to the lack of plugin system in Hugo, there is no way to change date format
in the build process. I approached a simple solution for fixing this problem. By
running `hoor` command in your hugo site source code, **Hoor** will automatically
finds all of your posts/pages, read the gregorian date and convert it to a Shamsi(Jalali) 
date string then add the result to the [front matter](https://gohugo.io/content/front-matter/)
list. Afterwards, you can use that string as a [template variable](https://gohugo.io/templates/variables/).

#### So why shouldn't I generate that string manually, using a simple code editor?

Of course you can write it manually, but applying any change in date format would
be a great pain in future, by using **Hoor** you can change date format of 50+ files
in a few seconds while changing them manually would take so much longer. It's all
about maintainability.<commit_msg>Add godoc badge<commit_after># Hoor [![godoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/alireza-ahmadi/hoor)

> Hoor is the Persian word for sun.

Hoor is a command line tool for adding Shamsi date feature to [Hugo](http://gohugo.io)
based websites.

## How it works?

Due to the lack of plugin system in Hugo, there is no way to change date format
in the build process. I approached a simple solution for fixing this problem. By
running `hoor` command in your hugo site source code, **Hoor** will automatically
finds all of your posts/pages, read the gregorian date and convert it to a Shamsi(Jalali) 
date string then add the result to the [front matter](https://gohugo.io/content/front-matter/)
list. Afterwards, you can use that string as a [template variable](https://gohugo.io/templates/variables/).

#### So why shouldn't I generate that string manually, using a simple code editor?

Of course you can write it manually, but applying any change in date format would
be a great pain in future, by using **Hoor** you can change date format of 50+ files
in a few seconds while changing them manually would take so much longer. It's all
about maintainability.
{'fraction_non_alphanumeric': 0.07766143106457242, 'fraction_numerical': 0.0017452006980802793, 'mean_word_length': 4.395294117647059, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4951427', 'n_tokens_mistral': 660, 'n_tokens_neox': 636, 'n_words': 338}