Skip to content

Commit

Permalink
feat(#333): hide prev/next on taxonomy pages
Browse files Browse the repository at this point in the history
  • Loading branch information
carbontwelve committed Oct 3, 2024
1 parent 5da88a9 commit d5c8523
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_includes/components/page-article.njk
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
</nav>
</section>
{% endif %}
{% if previousPost or nextPost %}

{% if show_prev_next and (previousPost or nextPost) %}
<section>
<h3>Next in this series</h3>
<nav class="related-notes related-notes__next-previous">
Expand Down
2 changes: 2 additions & 0 deletions src/content/content.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {dateToFormat, notTagged, specialTagValue} from "../../lib/filters.js";

export default {
show_related: true,
show_prev_next: true,
featured: false,
draft: false,
excludeFromFeed: false,
Expand All @@ -11,6 +12,7 @@ export default {
// TODO: (RC2024) remove growthStage and contentType
growthStage: 'seedling', // seedling, budding, evergreen
contentType: 'thought', // thought, noteworthy, essay, tutorial, project

eleventyComputed: {
//changes: data => getChanges(data),
// niceDate: stops dateToFormat being hit hundreds of thousands of times
Expand Down
5 changes: 5 additions & 0 deletions src/content/taxonomy/series/series.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
*
*/
export default {
// Do not show related notes
show_related: false,
// Do not show prev/next links
show_prev_next: false,

// Do not include in RSS Feed
excludeFromFeed: true,

Expand Down
5 changes: 5 additions & 0 deletions src/content/taxonomy/stage/stage.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
*
*/
export default {
// Do not show related notes
show_related: false,
// Do not show prev/next links
show_prev_next: false,

// Do not include in RSS Feed
excludeFromFeed: true,

Expand Down
4 changes: 4 additions & 0 deletions src/content/taxonomy/topics/topics.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* an extensive personal history that I would like to share.
*/
export default {
// Do not show related notes
show_related: false,
// Do not show prev/next links
show_prev_next: false,
// Do not include in RSS Feed
excludeFromFeed: true,
// Tagged as special topic type, these aren't regular pages
Expand Down

0 comments on commit d5c8523

Please sign in to comment.