You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment the "Featured Chapter" on the home page is hardcoded. While that's fine for now, it would be good to serve a random one each time the page is refreshed.
Thoughts on how it might work:
Chapters mark quotes with a special span tag with a specific class name (quote?) or id (ids must be unique so quote-1, quote-2 or such like?) in the markdown.
The npm run generate script pulls them out (with regex?) into quote file(s).
The index.html EJS template pulls one in at random when called.
The text was updated successfully, but these errors were encountered:
I know in #614 (comment) we talked about making the quotes part of the chapters and then auto-generating the feature-chapters.html file but I really don't think it's worth the complexity. If the chapters were changing a lot, then this would make sense, but they aren't. So what we have now works well enough for me (and I'd argue is actually better having them altogether) and don't think it's worth revisiting this.
At the moment the "Featured Chapter" on the home page is hardcoded. While that's fine for now, it would be good to serve a random one each time the page is refreshed.
Thoughts on how it might work:
span
tag with a specificclass
name (quote
?) orid
(ids must be unique soquote-1
,quote-2
or such like?) in the markdown.npm run generate
script pulls them out (with regex?) into quote file(s).index.html
EJS template pulls one in at random when called.The text was updated successfully, but these errors were encountered: