The following methods on a Page object trigger content rendering: Content , FuzzyWordCount , Len , Plain , PlainWords , ReadingTime , Summary , Truncated , and WordCount .
You are trying to render content, which contains the shortcode, which tries to render content, which contains the shortcode, etc.
…
You could move this stuff into a partial (but you cannot call the partial from a shortcode or you’d be right back where you started).
Hmmm, that makes sense. Would there be a possibility to save the data determined in the shortcode (e.g. in a json file, as Data Template ) for later use?
Because I build up a total reading-time and a total word-count from a whole section (over all documents in it). Only the first document (the preface) should display the values.