mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Misc doc, code refactoring to improve documentation
This commit is contained in:
@@ -33,6 +33,7 @@ type Whitelist struct {
|
||||
patternsStrings []string
|
||||
}
|
||||
|
||||
// MarshalJSON is for internal use only.
|
||||
func (w Whitelist) MarshalJSON() ([]byte, error) {
|
||||
if w.acceptNone {
|
||||
return json.Marshal(acceptNoneKeyword)
|
||||
|
Reference in New Issue
Block a user