Commit graph

16 commits

Author SHA1 Message Date
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