Commit graph

99 commits

Author SHA1 Message Date
4824d3cada Add nanoc/ruledsl/require_rules.rb 2024-05-02 10:14:04 -03:00
c4593eac90 Add nanoc/ruledsl/filter.rb 2024-05-02 10:08:15 -03:00
ca391e7219 Remove unused dependencies 2024-05-02 08:34:35 -03:00
d7cb6f62be images/opengraph/ -> images/og/
But most importantly, for src/og/0.png:

* resize to 512x512
* apply a white background
* similar to the format for og/1.png, og/2.png, etc
2024-05-02 07:32:11 -03:00
cc3b8f27a9 quran.png -> 0.png 2024-05-02 07:15:01 -03:00
3a9d5ee022 Forward VERSION to SurahIndex.tsx 2024-05-01 11:51:18 -03:00
34bcbcdc19 Update T#tdata 2024-05-01 00:59:22 -03:00
8890b67dbb Update /(en|ar)/index.html 2024-05-01 00:09:13 -03:00
f544be4144 Fix / improve render of meta tags (stream.html.erb) 2024-05-01 00:00:45 -03:00
6bec11a547 Add static JSON to .js files rather than .html files 2024-04-30 22:46:48 -03:00
e8347fa5a5 Add packages/typescript/Quran/ 2024-04-30 09:43:30 -03:00
0c05e5344c Move postman.scss to /css/vendor/postman.scss 2024-04-30 00:28:52 -03:00
8beaf71ac8 json: add parent directory (src/json/) 2024-04-30 00:11:00 -03:00
7c05916998 css: add base/, main/ 2024-04-29 23:26:03 -03:00
05ac909e80 Replace slugs.json with nameById.json 2024-03-16 21:31:06 -03:00
6817f35e54 Replace src/js/lib/Locale.ts 2024-03-16 11:13:27 -03:00
25557888cd Add src/js/main/redirect.ts 2024-03-16 05:35:58 -03:00
047eac5b75 Add src/js/main/random.ts 2024-03-16 05:18:03 -03:00
60c8b9799b Add src/js/main/surah-stream.tsx 2024-03-16 04:56:56 -03:00
8dc06cd004 Add src/js/main/surah-index.tsx 2024-03-16 04:17:49 -03:00
c95da7197c Move top-level json files in src/ to src/json/ 2024-03-15 15:06:16 -03:00
7e04b66db3 Move favicon*.png to src/images/ 2024-03-15 15:06:16 -03:00
e2702ded25 Add src/favicon.ico 2024-03-10 08:54:42 -03:00
84b44f081c Set surah_name within opengraph.rb 2024-02-26 18:20:38 -03:00
7722f3672b Add favicon variants (in PNG format) 2024-02-25 16:19:51 -03:00
2ea3055305 seo-related changes 2024-01-03 15:55:21 -03:00
af016d24a8 bug: write "/favicon.svg" 2023-12-14 22:11:12 -03:00
89e4d50460 Add /durations/
This change fixes SurahStream.tsx by hosting the durations for the
timer locally, within the app, rather than depending on
al-quran.reflectslight.io being accessible (eg when offline).
2023-11-28 15:13:32 -03:00
d0b046431d Add opengraph support to /en/, /ar/ 2023-11-12 17:09:57 -03:00
74eae72495 Replace filters/tidy.rb with nanoc-tidy.rb (rubygem) 2023-11-07 01:59:45 -03:00
48eda16678 Move /src/js/pages/* to /src/js/
And move `/src/css/pages/*` to `/src/css/`.
2023-10-29 20:24:26 -03:00
cfdd58661d Run tidy over random.html.erb, redirect.html.erb 2023-10-28 07:02:08 -03:00
f720df5cda Localize random and redirect pages 2023-10-28 06:58:44 -03:00
1d641e7c71 Re-organize project files
Attempt to simplify the layout of project files.
2023-10-08 06:31:29 -03:00
6e1a7aec51 Add Nanoc::Filters::Tidy
Add a nanoc filter that runs HTML content through
[tidy-html](https://github.com/htacg/tidy-html5).

The content that is first run through ERB is often indented
incorrectly and inconsistently, and 'tidy' can fix that for us.
2023-10-07 19:29:52 -03:00
9ac57086a1 Run rubocop 2023-10-07 19:29:52 -03:00
b418b47685 Add 'memoize' 2023-10-07 19:29:52 -03:00
599f37d2fe Update t 2023-10-07 19:29:52 -03:00
88630bae1b 'erb' is relative to the html directory 2023-10-07 19:29:52 -03:00
4850546eb1 Add 'Mixin' 2023-10-07 19:29:52 -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
a6b55b64b7 Add context to surah index (index.html.erb) 2023-10-05 12:25:23 -03:00
251dde6080 Merge various locals into context (stream.html.erb) 2023-10-05 12:25:23 -03:00
84a84b9af2 Fix build 2023-10-05 02:46:00 -03:00
dc23ed29bf Add opengraph
Fix #151
2023-10-05 02:36:47 -03:00
bba9e32d9b tasks: rm cmd.rb (not used anymore) 2023-07-23 13:58:08 -03:00
3b0a0c08ab Move "lib/" to "nanoc/lib/" 2023-07-21 13:26:26 -03:00
51ca9c292c Add meta description for search engines 2023-07-21 10:27:17 -03:00
d62c12060e Move "rules/" to "nanoc/rules/". 2023-07-17 07:19:43 -03:00