b99f104464
Set -upper => true
(tidy-html5)
2024-02-25 13:04:45 -03:00
1f6f039ba3
Add per-env webpack configuration files
2024-02-18 09:26:04 -03:00
74eae72495
Replace filters/tidy.rb
with nanoc-tidy.rb (rubygem)
2023-11-07 01:59:45 -03:00
c8613cf304
Minify recitations.json
2023-10-14 09:21:39 -03:00
1d641e7c71
Re-organize project files
...
Attempt to simplify the layout of project files.
2023-10-08 06:31:29 -03:00
a2fc33bb7c
Remove redirect from /en/1/ to /en/al-fatihah/
...
Rather than redirect /en/1/ to /en/al-fatihah/, render the surah
stream instead. A canonical `link` tag is included for the benefit
of search engines to differentiate between duplicates.
Preference is given to /en/al-fatihah/ over /en/1/.
2023-10-06 00:06:25 -03:00
edf7fdbd92
Minify reciters.json
2023-07-21 12:30:47 -03:00
23d1eeca2b
Add robots.txt
2023-07-17 16:48:12 -03:00
d62c12060e
Move "rules/" to "nanoc/rules/".
2023-07-17 07:19:43 -03:00
bd000760ea
webpackage.scss -> postman.scss
2023-07-11 20:14:58 -03:00
5748101c9a
Migrate to nanoc-gzip
2023-06-29 19:49:42 -03:00
919af86a65
rubocop'ing
2023-03-12 16:50:19 -03:00
468613e193
Rename "surah_id_to_name" to "slugs"
...
Fix #106
2023-03-12 16:46:11 -03:00
5f957af84c
Set document title at compile time
...
This change will hopefully make it easier for search engines to
pick up a page's title.
2023-03-12 11:23:48 -03:00
3f3032dfcb
Add canonical link tag to id_redirect.html.erb
2023-03-11 16:04:21 -03:00
1ab56c61bf
Add src/sitemap.xml.erb
2023-03-11 16:04:21 -03:00
07812ffdaa
Add "inline_css" helper method
2023-03-11 10:45:12 -03:00
145d5a4399
Run rubocop -A
2023-03-11 09:31:37 -03:00
3bbe8cf165
Inline surahs.json, slugs.json, and i18n.json
2023-03-11 09:27:31 -03:00
914c918eaa
Add a simpler, more organized i18n.ts implementation
2023-03-11 08:35:49 -03:00
9fef5122eb
Add surah/id_redirect
2023-03-10 07:48:47 -03:00
2dfadcb937
Add surah/random
2023-03-10 07:39:03 -03:00
20b7420ac9
Replace TheSurahPage with surah/stream
2023-03-10 06:47:35 -03:00
eac53f8da1
Add surah/redirect
2023-03-10 06:13:49 -03:00
d8b63e4fd0
Replace TheSurahIndex with surah/index
2023-03-10 06:13:49 -03:00
0073c76fbb
Add TheSurahIndex.tsx
...
TheSurahIndex.tsx provides a list of surahs (aka chapters) from
The Quran. Fix #2 .
2023-03-06 17:30:38 -03:00
29bc167fa0
Split 'Rules' file across multiple files
...
This change will hopefuly make it easier to scale the Rules file
over time. Rather than having one file with all rules, there are
multiple files that are categorized.
Ref #2
2023-03-01 22:04:50 -03:00
78a0146cf9
Generalize the CSS
2023-02-28 05:03:09 -03:00
25e5703e1a
Add random redirect from the paths /en, and /ar
...
When the theme logo is clicked, the user will be redirected
to a random surah and the current active language will remain
the same.
2023-01-09 05:15:18 -03:00
2c81c044f6
Upgrade to nanoc-webpack.rb v0.1.5
2023-01-08 06:23:05 -03:00
5c8247aedb
Add lib/slice.ts
2023-01-05 19:31:32 -03:00
431bde851c
Add Select component
...
The Select component renders a list, and provides more flexibility
in how the element is styled (compared to a regular "<select>").
2022-12-28 04:01:23 -03:00
f1e63d6132
Rules: change 'depend_on' patterns
2022-12-27 03:42:20 -03:00
b7d6c9262e
Rules: add a more precise compilation rule
2022-11-28 00:33:23 -03:00
955e0ef1e2
depend on version of nanoc-webpack.rb that supports dep tracking.
...
Related #24
2022-11-20 00:37:06 -03:00
8b01a5f575
redirect from index.html with one redirect rather than two.
...
Fix #41
2022-11-19 19:28:10 -03:00
816ea05288
filters/: add nanoc-webpack.rb
...
Replace lib/filters/webpack.rb with
[nanoc-webpack.rb](https://github.com/0x1eef/nanoc-webpack.rb )
2022-11-18 22:27:54 -03:00
889651cee4
Rules: remove unneccessary "exe" option
2022-11-18 17:09:32 -03:00
616f5d6073
add "WebPackage"
...
The "WebPackage" object allows for scripts, stylesheets, fonts, images
and other webpage assets to be downloaded for the page's primary content
to use afterwards.
2022-11-18 17:09:32 -03:00
b7410acc07
filters/webpack: remove "exe" option.
...
Fix #37
2022-11-18 00:41:28 -03:00
516cbc5594
Rules: compress surah.json for surahs greater than 10KB in size
...
This change will compress surah.json for surahs that are greater than
10KB in size.
2022-11-12 15:28:20 -03:00
a2c9e774af
replace lib/filters/gzip.rb with nanoc-gunzip.rb
2022-11-12 14:15:06 -03:00
7c42805787
lib/filters/gzip.rb: compress fonts, images, and javascript
2022-11-11 07:47:57 -03:00
296aa9a165
src/: add src/js/pages/redirect-to-surah-slug.ts
2022-11-06 06:55:13 -03:00
e31fac44bb
src/: add src/js/pages/redirect-to-random-surah.ts
2022-11-06 06:55:13 -03:00
520c141d56
rename src/html/ files
...
* `src/html/surah.html.erb` -> `src/html/TheSurahPage.html.erb`
* `src/html/random_redirect.html` -> `src/html/redirect-to-random-surah.html`
* `src/html/slug_redirect.html.erb` -> `src/html/redirect-to-surah-slug.html.erb`
2022-11-06 06:53:30 -03:00
817b1305ac
Rules: update
2022-11-05 21:46:23 -03:00
2926183932
move html & erb files to src/html/
2022-11-05 21:46:23 -03:00
d00b8277a3
redirect from /<locale>/<surah-id>/ to /<locale>/<surah-slug>/
...
This change will trigger redirects from - for example, "/en/1/"
to "/en/al-fatihah".
2022-11-05 19:49:11 -03:00
fc070c01b8
Ruby: fix linter errors
2022-11-02 00:53:00 -03:00