|
59 | 59 | "description": "A collection of modern Java code snippets. Every old Java pattern next to its clean, modern replacement — side by side.", |
60 | 60 | "mainEntity": { |
61 | 61 | "@type": "ItemList", |
62 | | - "numberOfItems": 85, |
| 62 | + "numberOfItems": {{snippetCount}}, |
63 | 63 | "itemListElement": [ |
64 | 64 | {"@type": "ListItem", "position": 1, "url": "https:\/\/javaevolved.github.io\/type-inference-with-var", "name": "Type inference with var"} |
65 | 65 | ,{"@type": "ListItem", "position": 2, "url": "https:\/\/javaevolved.github.io\/text-blocks-for-multiline-strings", "name": "Text blocks for multiline strings"} |
|
168 | 168 | </nav> |
169 | 169 |
|
170 | 170 | <section class="hero"> |
171 | | - <div class="hero-badge">✦ 85 modern patterns · Java 8 → Java 25</div> |
| 171 | + <div class="hero-badge">✦ {{snippetCount}} modern patterns · Java 8 → Java 25</div> |
172 | 172 | <h1>Java has evolved.<br><span class="gradient">Your code can too.</span></h1> |
173 | 173 | <p>Every old Java pattern next to its clean, modern replacement — side by side.</p> |
174 | 174 | <a href="/language/records-for-data-classes.html" class="hero-compare"> |
@@ -214,7 +214,7 @@ <h1>Java has evolved.<br><span class="gradient">Your code can too.</span></h1> |
214 | 214 | <section class="section" id="all-comparisons" style="padding-top:24px"> |
215 | 215 | <div class="section-header"> |
216 | 216 | <h2 class="section-title">All comparisons</h2> |
217 | | - <span class="section-badge">85 snippets</span> |
| 217 | + <span class="section-badge">{{snippetCount}} snippets</span> |
218 | 218 | </div> |
219 | 219 | <div class="filter-pills" id="categoryFilter"> |
220 | 220 | <span class="filter-label">Filter:</span> |
@@ -2961,7 +2961,7 @@ <h3>Default interface methods</h3> |
2961 | 2961 |
|
2962 | 2962 | <div class="stats-bar"> |
2963 | 2963 | <div class="stat-card"> |
2964 | | - <div class="number orange">85</div> |
| 2964 | + <div class="number orange">{{snippetCount}}</div> |
2965 | 2965 | <div class="label">Modern Patterns</div> |
2966 | 2966 | </div> |
2967 | 2967 | <div class="stat-card"> |
|
0 commit comments