Skip to content

Commit

Permalink
Merge pull request #14 from visuellverstehen/update-dependencies
Browse files Browse the repository at this point in the history
update dependencies
  • Loading branch information
juliawarnke authored May 22, 2024
2 parents 3370fb7 + 9f9aaed commit 1080253
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 8,185 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
vendor
mix-manifest.json
.idea
.idea
composer.lock
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ Include the `{{ anchor_navigation }}` tag in your template and supply the field
</ul>
```

You also specify the entry from which you want to render the anchor navigation.
```
<ul>
{{ anchor_navigation from="bard" :entry="specific_entry" }}
<li>
<a href="#{{ id }}">{{ headline }}</a>
</li>
{{ /anchor_navigation }}
</ul>
```


You can get the amount of headings found within the content with the `count` tag:

```
Expand Down
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "visuellverstehen/statamic-anchor-navigation",
"description": "A Statamic tag for creating an anchor nav for all headings generated by the bard editor.",
"keywords": [ "statamic", "addon", "bard", "navigation", "anchor", "v3", "v4" ],
"keywords": [ "statamic", "addon", "bard", "navigation", "anchor", "v4", "v5" ],
"license": "MIT",
"type": "statamic-addon",
"autoload": {
Expand Down Expand Up @@ -29,8 +29,7 @@
}
},
"require": {
"php": "^8.1",
"statamic/cms": "^3.4 || ^4.0"
"statamic/cms": "^4.0 || ^5.0"
},
"config": {
"allow-plugins": {
Expand Down
Loading

0 comments on commit 1080253

Please sign in to comment.