Skip to content

Commit

Permalink
remove summaries (#4469)
Browse files Browse the repository at this point in the history
Because our blog posts are mostly only release announcements trying
to have summaries probably isn't that useful. The summaries also
sometimes get misrendered in small ways (as is the case for the
latest-as-of-this-writing summary for the 17.6.0 release).
  • Loading branch information
Trott committed Mar 8, 2022
1 parent 2d93e6f commit fa41655
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 64 deletions.
3 changes: 1 addition & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ function buildLocale(source, locale, opts) {
pagination({
path: 'blog/year',
iteratee: (post, idx) => ({
post,
displaySummary: idx < 10
post
})
})
)
Expand Down
6 changes: 0 additions & 6 deletions layouts/blog-index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
<li>
<time datetime="{{ strftime post.date '%FT%T%z' }}">{{ strftime post.date "%d %b" }}</time>
<a href="/{{ ../site.locale }}/{{ post.path }}/">{{ post.title }}</a>

{{#if displaySummary}}
<div class="summary">
{{{ summary post.contents ../site.locale post.path }}}
</div>
{{/if}}
</li>
{{/each}}
</ul>
Expand Down
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"@metalsmith/markdown": "^1.4.0",
"@metalsmith/permalinks": "^2.4.0",
"autoprefixer": "^10.4.2",
"cheerio": "^0.22.0",
"graceful-fs": "^4.2.9",
"handlebars": "^4.7.7",
"jquery": "^3.6.0",
Expand Down
54 changes: 0 additions & 54 deletions scripts/helpers/summary.js

This file was deleted.

0 comments on commit fa41655

Please sign in to comment.