Skip to content

Commit

Permalink
Separate taxonomy tags based on the language. Thanks to getgrav/grav-…
Browse files Browse the repository at this point in the history
  • Loading branch information
QSaman committed Jun 8, 2020
1 parent 8c5cc40 commit 1f798bf
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4 deletions.
7 changes: 7 additions & 0 deletions config/plugins/taxonomylist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
enabled: true
route: '/blog'
language:
en:
taxonomy: en_tag
fa:
taxonomy: fa_tag
3 changes: 3 additions & 0 deletions config/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
description: 'Welcome to Saman Saadi Website'
blog:
hero_image: 'user://pages/files/images/my-header.jpg'

taxonomies: [category,en_tag, fa_tag]

#menu:
# - text: Blog
# icon: pencil
Expand Down
2 changes: 1 addition & 1 deletion pages/02.blog/credit_cards_and_rewards/item.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ hero_image: header.png

taxonomy:
category: blog
tag: [credit card, finance, money]
en_tag: [credit card, finance, money]
---

You can find a lot of Credit Cards with different Rewards Programs. Basically we have two rewards category: cash-based cards and point-based cards.
Expand Down
2 changes: 1 addition & 1 deletion pages/02.blog/persian_decimal_separator/item.fa.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ hero_image: Farsi_fonts_2020-03-22_2035_close.png

taxonomy:
category: blog
tag: [فونت فارسی, ممیز]
fa_tag: [فونت فارسی, ممیز]
---

متأسفانه خیلی‌ها از جمله کسایی که کارشون ویرایش مطالب فارسی هست چیز زیادی از ممیز فارسی نمی‌دونن. ممیز فارسی ٫ هست نه /. مهم‌ترین کاربردش هم توی سایت‌های خبرگزاری هست. حتماً دیدین که مثلاً اگه خبری در مورد زلزله می‌گن آدم نمی‌دونه که زلزله‌ی ۳٫۷ اومده یا ۷٫۳. علتش این هست که چون از ممیز انگلیسی استفاده می‌کنن، ممکن هست که برعکس نشون داده بشه.
Expand Down
2 changes: 1 addition & 1 deletion pages/02.blog/phone_numbers/item.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hero_image: header.jpg

taxonomy:
category: blog
tag: [travel, phone, cellphone, city]
en_tag: [travel, phone, cellphone, city]
---


Expand Down
2 changes: 1 addition & 1 deletion pages/02.blog/time_zones/item.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hero_image: header.png

taxonomy:
category: blog
tag: [travel, city, linux, date, time zone]
en_tag: [travel, city, linux, date, time zone]
---

There is an independent database of different zones named tz database. Basically they named each zone start with the continent or ocean name then follows slash and finally the city or region name. For example `America/Montreal`, `America/New_York`, `Asia/Tehran`, `Europe/London`.
Expand Down

0 comments on commit 1f798bf

Please sign in to comment.