Add "X minutes to read" - #76
Open
jmwingenroth wants to merge 2 commits into
Open
Conversation
A site-wide script inserts an "X min read" line under each page title, based on a 200 words-per-minute estimate of the page content. The landing page is skipped since it is navigational rather than a reading page. Addresses #62 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Section landing pages (e.g. 01-files/index.qmd) are navigational, not reading pages, so skip them along with the site root. A URL-path check covers both, replacing the previous quarto:offset meta-tag lookup. Addresses #62 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #62
Note that it skips */index.qmd pages. Those are generally just a summary paragraph and a references list and come in at 1 or 2 minutes (aside from Code). I think the tool is visual clutter on those short pages whereas it is useful info on longer subtopic pages.