Skip to content

Commit 067b4ae

Browse files
committed
Document NoDuplicateTags
1 parent b57d5ba commit 067b4ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pre-commit:
3636
variables: ['description']
3737
- check: FrontMatterVariableMeetsLengthRequirements
3838
variables: ['description', 'title']
39+
- check: NoDuplicateTags
3940
```
4041
4142
## Available Checks
@@ -76,6 +77,10 @@ For example...
7677

7778
In the above, there would be a maximum length of 50 characters for the title (rather than the default of 59)
7879

80+
#### NoDuplicateTags
81+
82+
Checks that you have not accidentally introduced a duplicate tag. For example, if you have posts that are already using "MySQL" as a tag and you attempt to commit a post with the tag "mysql" (notice the difference in case-sensitivity) you will not be allowed to commit.
83+
7984
## Roll Your Own
8085

8186
You can also add your own checks. To do so, create a class in the `Jekyll::PreCommit::Checks` module and and define a `check` method. Your class should extend the `Jekyll::PreCommit::Checks::Check` class and return the `@result` instance variable.

0 commit comments

Comments
 (0)