Skip to content

Commit

Permalink
add data-heading-anchors-optout to pages (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdela authored Aug 20, 2024
1 parent 61823c8 commit b0a4588
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion content/about/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ eleventyNavigation:
order: 3
---

# About eleventeen <span role="img" aria-label="">🌈📓</span>
<h1 data-heading-anchors-optout>About eleventeen <span role="img" aria-label="">🌈📓</span></h1>

Eleventeen is an evolving variation of [Eleventy Base Blog](https://github.com/11ty/eleventy-base-blog), a starter repository showing how to build a blog with [Eleventy (11ty)](https://www.11ty.dev/), the award-winning open source site generator created and maintained by [Zach Leatherman](https://www.zachleat.com/), who [blogs about Eleventy](https://www.zachleat.com/web/?category=eleventy) often.

Expand Down
2 changes: 1 addition & 1 deletion content/archive.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ eleventyNavigation:
key: Archive
order: 2
---
<h1>Archive</h1>
<h1 data-heading-anchors-optout>Archive</h1>

{% set postslist = collections.posts %}
{% include "postslist.njk" %}
2 changes: 1 addition & 1 deletion content/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ numberOfLatestPostsToShow: 12
---
{% set postsCount = collections.posts | length %}
{% set latestPostsCount = postsCount | min(numberOfLatestPostsToShow) %}
<h1>Latest {% if latestPostsCount != 1 %}{{ latestPostsCount }} {% endif %}Post{% if latestPostsCount != 1 %}s{% endif %}</h1>
<h1 data-heading-anchors-optout>Latest {% if latestPostsCount != 1 %}{{ latestPostsCount }} {% endif %}Post{% if latestPostsCount != 1 %}s{% endif %}</h1>

{% set postslist = collections.posts | head(-1 * numberOfLatestPostsToShow) %}
{% set postslistCounter = postsCount %}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eleventeen",
"version": "9.2.24-beta.1",
"version": "9.2.25-beta.1",
"description": "Starter repository for a website built with Eleventy + eleventeen",
"type": "module",
"scripts": {
Expand Down

0 comments on commit b0a4588

Please sign in to comment.