Skip to content

Commit

Permalink
docs: fix grammatical error (#2080)
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon authored Oct 18, 2023
1 parent 4939edb commit bfb7e50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/api/helper.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ hexo.extend.helper.register('lorem', function(path) {
});
```

### How do I use a registered helper in another extension (e.g. Filter, Injector, etc)?
### How do I use a registered helper in another extension (e.g. Filter, Injector)?

`hexo.extend.helper.get` will return the helper function, but it needs to have hexo as its context, so:

Expand Down
2 changes: 1 addition & 1 deletion source/api/rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ If you are not using a [tag plugin](/docs/tag-plugins) and want to use `{{ }}` o

``` js
// following example only applies to '.md' file extension
// you may need to cover other extensions, e.g. '.markdown', '.mkd', etc
// you may need to cover other extensions, e.g. '.markdown', '.mkd'
const renderer = hexo.render.renderer.get('md')
if (renderer) {
renderer.disableNunjucks = true
Expand Down

0 comments on commit bfb7e50

Please sign in to comment.