mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-07 23:30:50 +02:00
commands: Deprecate --omitEmpty on chromastyles command
It's no longer needed -- empty classes are now always omitted.
See See 5b2a4c5a26
This commit is contained in:
@@ -15,8 +15,15 @@ stdout 'Generated using: hugo gen chromastyles --style monokai'
|
||||
! hugo gen chromastyles --style __invalid_style__
|
||||
stderr 'invalid style: __invalid_style__'
|
||||
|
||||
# Issue 13475
|
||||
# Not empty classes.
|
||||
# From Hugo 0.149.0 empty classes are always removed, so no need for the omitEmpty flag.
|
||||
hugo gen chromastyles --style monokai
|
||||
stdout '{ }'
|
||||
hugo gen chromastyles --omitEmpty --style monokai
|
||||
! stdout '\{ \}'
|
||||
! stdout '{ }'
|
||||
hugo gen chromastyles --omitEmpty --style monokai --logLevel info
|
||||
stderr 'INFO deprecated: --omitEmpty was deprecated'
|
||||
|
||||
# Disable class comments.
|
||||
hugo gen chromastyles --style monokai
|
||||
stdout 'GenericSubheading'
|
||||
hugo gen chromastyles --omitClassComments --style monokai
|
||||
! stdout 'GenericSubheading'
|
Reference in New Issue
Block a user