Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 95 additions & 1 deletion src/schemas/json/hugo.json
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,8 @@
"strikethrough": true,
"table": true,
"taskList": true,
"typographer": true
"typographer": true,
"extras": null
},
"parser": {
"attribute": {
Expand Down Expand Up @@ -1204,6 +1205,99 @@
"description": "\nhttps://gohugo.io/getting-started/configuration-markup#goldmark",
"type": "boolean",
"default": true
},
"extras": {
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
"type": "object",
"default": {
"delete": {
"enable": false
},
"insert": {
"enable": false
},
"mark": {
"enable": false
},
"subscript": {
"enable": false
},
"superscript": {
"enable": false
}
},
"properties": {
"delete": {
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
"type": "object",
"default": {
"enable": false
},
"properties": {
"enable": {
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
"type": "boolean",
"default": false
}
}
},
"insert": {
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
"type": "object",
"default": {
"enable": false
},
"properties": {
"enable": {
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
"type": "boolean",
"default": false
}
}
},
"mark": {
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
"type": "object",
"default": {
"enable": false
},
"properties": {
"enable": {
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
"type": "boolean",
"default": false
}
}
},
"subscript": {
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
"type": "object",
"default": {
"enable": false
},
"properties": {
"enable": {
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
"type": "boolean",
"default": false
}
}
},
"superscript": {
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
"type": "object",
"default": {
"enable": false
},
"properties": {
"enable": {
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
"type": "boolean",
"default": false
}
}
}
}
}
},
"additionalProperties": false
Expand Down
114 changes: 114 additions & 0 deletions src/test/hugo/example-5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# yaml-language-server: $schema=../../schemas/json/hugo.json
frontmatter:
date:
- ':default'
- ':fileModTime'
- ':filename'
- ':git'
- 'date'
- 'lastmod'
- 'modified'
- 'pubdate'
- 'publishDate'
expiryDate: [':default', 'expiryDate', 'unpublishdate']
lastmod:
[
':default',
':fileModTime',
':filename',
':git',
'date',
'lastmod',
'modified',
'pubdate',
'publishDate',
]
publishDate:
[
':default',
':fileModTime',
':filename',
':git',
'date',
'lastmod',
'modified',
'pubdate',
'publishDate',
]

permalinks:
page:
articles: '/articles/:slugorfilename'
post: '/:slug/'

build:
_merge: shallow
buildStats:
disableClasses: false
disableIDs: false
disableTags: false
enable: true
cachebusters:
- source: assets/watching/hugo_stats\.json
target: styles\.css
- source: (postcss|tailwind)\.config\.js
target: css
- source: assets/.*\.(js|ts|jsx|tsx)
target: js
- source: assets/.*\.(.*)$
target: $1
noJSConfigInAssets: false
useResourceCacheWhen: fallback

menu:
resume:
- identifier: education
name: Education
weight: 1
params:
count: 1

module:
workspace: hugo.work

markup:
goldmark:
extensions:
extras:
foo:
enable: true
mark:
enable: true

minify:
disableCSS: false
disableHTML: false
disableJS: false
disableJSON: false
disableSVG: false
disableXML: false
minifyOutput: false
tdewolff:
css:
keepCSS2: true
precision: 0
html:
keepComments: false
keepConditionalComments: true
keepDefaultAttrVals: true
keepDocumentTags: true
keepEndTags: true
keepQuotes: false
keepWhitespace: false
js:
keepVarNames: false
precision: 0
version: 2022
json:
keepNumbers: false
precision: 0
svg:
keepComments: false
precision: 0
xml:
keepWhitespace: false