Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRami Sabbagh <ramilego4game@gmail.com>2022-01-26 05:15:02 +0300
committerGitHub <noreply@github.com>2022-01-26 05:15:02 +0300
commit086f1e98c193943010f7e3b7889b8f2d0ac4e57b (patch)
tree34525ef019f6766be206c1bf48c5883f1ace1bbb /assets/css/tailwind.config.js
parent9c3d6160dbf9ce9a4556d2746df4e105403e3d20 (diff)
feat: add RTL layout support and Arabic localization (#159)
* Add direction attribute to the <html> tag So rtl layout can be activated * Add `tailwindcss-rtl` Which brings very handy RTL support to Tailwind CSS * Load the `tailwindcss-rtl` plugin * Find and replace many classes into RTL capable ones * Find and replace many classes into RTL capable ones * Update the prebuilt css * Add Arabic localization * Fix code blocks, force their layout to LTR * Update the prebuilt css * Minor improvement to the Arabic localization * Add singular/plural support for `readingTime` By following [hugo docs](https://gohugo.io/content-management/multilingual/#query-a-singularplural-translation) * Add a singular form of `readingTime` for Arabic * Add a singular form of `readingTime` for English * Add an additional variant for `readingTime` in the Arabic localization In Arabic we have a plural for dual, and a plural for 3+. * Fix left and right arrows not being flipped in RTL I had to manually flip them in each place * Revert "Add a singular form of `readingTime` for English" This reverts commit 73482b600ed7da5fb37b2b5f7d88384a32de18b1. * Add singular variant for `readingTime` in EN localization
Diffstat (limited to 'assets/css/tailwind.config.js')
-rw-r--r--assets/css/tailwind.config.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/assets/css/tailwind.config.js b/assets/css/tailwind.config.js
index 88b2d42..405b7b0 100644
--- a/assets/css/tailwind.config.js
+++ b/assets/css/tailwind.config.js
@@ -53,5 +53,7 @@ module.exports = {
}
},
variants: {},
- plugins: []
+ plugins: [
+ require('tailwindcss-rtl')
+ ]
}