--- - branch: MAIN date: Sat Mar 5 14:16:43 UTC 2022 files: - new: '1.54' old: '1.53' path: pkgsrc/www/hugo/Makefile pathrev: pkgsrc/www/hugo/Makefile@1.54 type: modified - new: '1.15' old: '1.14' path: pkgsrc/www/hugo/distinfo pathrev: pkgsrc/www/hugo/distinfo@1.15 type: modified - new: '1.6' old: '1.5' path: pkgsrc/www/hugo/go-modules.mk pathrev: pkgsrc/www/hugo/go-modules.mk@1.6 type: modified id: 20220305T141643Z.3b180f1fc288ce66f4bebd2f4efe0981c7ddc103 log: | hugo: update to 0.93.2 Changelog: v0.93.2 This is a bug-fix release with a couple of important fixes. tpl/os: Revert readDir in theme behaviour markup/goldmark: Escape image alt attribute v0.93.1 This is a bug-fix release with a couple of important fixes. tpl/transform: Fix it when template.HTML is passes as option to Hightlight tpl/partials: Fix partialCached deadlock regression tpl/collections: Fix apply when function have Context as first arg v0.93.0 Markdown diagrams and code block render hooks. Now it's possible create custom templates for Markdown code blocks, either for all or just for specific programming languages. This can also be used to render diagrams from Markdown code blocks. We provide GoAT (Go ASCII Tool) natively from Hugo, but you can also add your own template to get Mermaid support. The implementation of GoAT is a Go implementation by @blampe of markdeep.mini.js' diagrams. See the diagram documentation for details. Also new in this release are: The new CLI flag --printUnusedTemplates which prints templates not being invoked during the build. The new method $image.Crop allows images to be cropped without being resized (thanks @johnsvenn for the implementation). Notes We have renamed some command line flags for consistency: --i18n-warnings to printI18nWarnings, --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage. Finally remove deprecated Page methods Changes docs: Regenerate docs helper markup/highlight: Ignore HL_lines_parsed in the gen docs cod: Regen CLI docs tpl/diagrams: Rename the SVG accessor to Wrapped markup/highlight: Rework the return value from HighlightCodeblock tpl/transform: Add CanHighlight Rename Codeowners() to CodeOwners() tpl/diagrams: Rename Body to Inner CodeblockContext method renames build(deps): bump github.com/tdewolff/minify/v2 from 2.9.29 to 2.10.0 markup/goldmark: Adjust test for Windows markup/goldmark: Improve attributes vs options markup/goldmark: Add Position to CodeblockContext markup/goldmark: Unify some code block tests Remove the trailing new line in .Code markup/goldmark: Rename extension struct build(deps): bump github.com/gobuffalo/flect from 0.2.3 to 0.2.4 markup/goldmark: Use Ordinal to create default lineanchors build(deps): bump github.com/gorilla/websocket from 1.4.2 to 1.5.0 build(deps): bump github.com/sanity-io/litter from 1.5.1 to 1.5.2 Move the Goat template to the correct place build(deps): bump google.golang.org/api from 0.63.0 to 0.70.0 Update error message about failed menus in config.toml build(deps): bump github.com/getkin/kin-openapi from 0.85.0 to 0.90.0 Add test for line anchor attributes with code fences build(deps): bump github.com/evanw/esbuild from 0.14.22 to 0.14.23 Add Markdown diagrams and render hooks for code blocks build(deps): bump github.com/aws/aws-sdk-go from 1.41.14 to 1.43.5 build(deps): bump github.com/google/go-cmp from 0.5.6 to 0.5.7 Add support for CODEOWNERS Remove Viper as a dependency helpers: Allow hyphens in UnicodeSanitize Change disqus_config to window.disqus_config deps: Update github.com/spf13/cobra v1.2.1 => v1.3.0 Add page.Store Allow images to be cropped without being resized commands: Fix server panic regression markup/goldmark: Add BenchmarkCodeblocks deps: Update github.com/gohugoio/localescompressed v0.14.0 => v0.15.0 deps: Update github.com/yuin/goldmark v1.4.4 => v1.4.7 modules: Add modules.Workspace config for Go 1.18 Update stale.yml Update stale.yml github: Configure stale to be run manually tpl/partials: Fix recently introduced deadlock in partials cache tpl/partials: Add some more partials to BenchmarkIncludeCached deps: Update github.com/evanw/esbuild v0.14.11 => v0.14.22 tpl/partials: Make sure a cached partial is invoked only once build(deps): bump github.com/rogpeppe/go-internal from 1.8.0 to 1.8.1 build(deps): bump github.com/magefile/mage from 1.11.0 to 1.12.1 markup/goldmark: Exclude event attributes from markdown render hook markup/goldmark: Fix mangling of headers/links in render hooks markup/goldmark: Add a render hook benchmark Fix BenchmarkCascadeTarget metrics: Add cached count tracking tpl: Remove TODO comment Add --printUnusedTemplates deps: Update github.com/tdewolff/minify/v2 v2.9.22 => v2.9.29 commands: Rename --i18n-warnings to printI18nWarnings commands: Rename --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage deps: Update github.com/alecthomas/chroma v0.9.4 => v0.10.0 Finally remove deprecated Page methods tpl: Use go:embed to load internal templates releaser: Prepare repository for 0.93.0-DEV releaser: Bump versions for release of 0.92.2 releaser: Add release notes for 0.92.2 Add HUGO_ENV to the os/exec environment Simplify some integration tests Fix validation of Page Kind in cascade target map Add another cascade benchmark commands: Fix server deadlock on config error Exclude event attributes when rendering markdown Remove the "check" command Update the application/javascript media type tpl/templates: Fix templates.Exist issue with base templates Add a migration test helper babel: Port integration tests to their own package js: Port integration tests to its own package postcss: Move integration test to its own package minifier: Port integration tests to its package templates: Port integration test to its package tocss: Port integration tests to their package openapi3: Port integration test into correct Add a new integration test framework Validate comparison operator argument count Remove hugo gen autocomplete deps: Update github.com/pelletier/go-toml/v2 to v2.0.0-beta.6 Fix erroneous warning with .Page.RenderString on a page without a backing file Fix typo in panicOnWarning message releaser: Prepare repository for 0.93.0-DEV releaser: Bump versions for release of 0.92.1 releaser: Add release notes for 0.92.1 Make the RenderString content provider fix more general Fix .RenderString issue in .Translations general: Fix issue causing log threads to hang indefinitely when print() panics Fix duplicate mount sources tpl/collections: Fix apply with namespaced template funcs common: Remove unused code common/paths: Remove unused code helpers: Remove unused code Do not render hl_style as an HTML attribute build(deps): bump github.com/spf13/viper from 1.8.1 to 1.10.1 Fixing typos Fix typo in warning message github: Clean up the issue templates a little github: Add lock-threads step releaser: Prepare repository for 0.93.0-DEV v0.92.2 This is a bug-fix release with a couple of important fixes. Add HUGO_ENV to the os/exec environment Simplify some integration tests Fix validation of Page Kind in cascade target map Add another cascade benchmark commands: Fix server deadlock on config error Exclude event attributes when rendering markdown Remove the "check" command Update the application/javascript media type tpl/templates: Fix templates.Exist issue with base templates Add a migration test helper babel: Port integration tests to their own package js: Port integration tests to its own package postcss: Move integration test to its own package minifier: Port integration tests to its package templates: Port integration test to its package tocss: Port integration tests to their package openapi3: Port integration test into correct package Add a new integration test framework Validate comparison operator argument count Remove hugo gen autocomplete deps: Update github.com/pelletier/go-toml/v2 to v2.0.0-beta.6 Fix erroneous warning with .Page.RenderString on a page without a backing file Fix typo in panicOnWarning message releaser: Prepare repository for 0.93.0-DEV v0.92.1 This is a bug-fix release with a couple of important fixes. Make the RenderString content provider fix more general Fix .RenderString issue in .Translations general: Fix issue causing log threads to hang indefinitely when print() panics Fix duplicate mount sources tpl/collections: Fix apply with namespaced template funcs common: Remove unused code common/paths: Remove unused code helpers: Remove unused code Do not render hl_style as an HTML attribute build(deps): bump github.com/spf13/viper from 1.8.1 to 1.10.1 Fixing typos Fix typo in warning message github: Clean up the issue templates a little github: Add lock-threads step v0.92.0 docs: Regenerate docshelper Only create LazyContentProvider for the non-rendering Site Fix missing page data for alternative formats docs: Add dependency table to maintainance page deps: Upgrade github.com/evanw/esbuild v0.14.8 => v0.14.11 Add hugo.Deps hugolib: Fix livereload problem with files including NFC characters in MacOs docs. Regen CLI docs commands: Fix CLI help text for hugo new Update to Go 1.17.6 create: Correctly pass newContentEditor flags Add --panicOnWarning flag github: Increase stale days docs: Regenerate CLI docs docs: Regenerate docshelper Remove mmark Misc depreation updates Make the deprecated Page/File methods (from Hugo 0.55) ERROR github: Add add stale GitHub action Fix surprise OutputFormat.Rel overwriting hugolib: Make an RST test optional deps: Upgrade github.com/niklasfasching/go-org v1.5.0 => v1.6.0 Update stale.yml releaser: Prepare repository for 0.92.0-DEV releaser: Bump versions for release of 0.91.2 releaser: Add release notes for 0.91.2 Revert "config/security: Add HOME to default exec env var whitelist" Make sure we always create the /public folder Fix "stuck on build" in error situations in content processing deps: Run "go mod tidy" deps: Upgrade github.com/evanw/esbuild v0.14.7 => v0.14.8 releaser: Prepare repository for 0.92.0-DEV releaser: Bump versions for release of 0.91.1 releaser: Add release notes for 0.91.1 media: Also consider extension in FromContent media: Add missing BMP and GIF to the default MediaTypes list media: Add PDF MIME type deps: Update github.com/evanw/esbuild v0.14.5 => v0.14.7 config/security: Add HOME to default exec env var whitelist modules: Set GOCACHE env var releaser: Prepare repository for 0.92.0-DEV v0.91.2 This is a bug-fix release with a couple of important fixes. Revert "config/security: Add HOME to default exec env var whitelist" Make sure we always create the /public folder Fix "stuck on build" in error situations in content processing deps: Run "go mod tidy" deps: Upgrade github.com/evanw/esbuild v0.14.7 => v0.14.8 v0.91.1 This is a bug-fix release with a couple of important fixes. media: Also consider extension in FromContent media: Add missing BMP and GIF to the default MediaTypes list media: Add PDF MIME type deps: Update github.com/evanw/esbuild v0.14.5 => v0.14.7 config/security: Add HOME to default exec env var whitelist modules: Set GOCACHE env var v0.91.0 docs: Regen docs helper tpl/resources: Add empty method mapping for GetRemote Always use content to resolve content type in resources.GetRemote Add resources.GetRemote Allow for return partials with falsy arguments deps: Upgrade github.com/evanw/esbuild v0.14.2 => v0.14.5 don't use path.Join, because it cleans the final path Add some basic security policies with sensible defaults Simplify Babel test assertions Improve handling of remote image/jpeg resources Fix Dockerfile Remove debug statement Fix deprecation notice releaser: Prepare repository for 0.91.0-DEV releaser: Bump versions for release of 0.90.1 releaser: Add release notes for 0.90.1 Remove the retries on error in remote resources.Get Allow user to handle/ignore errors in resources.Get Make resource.Get return nil on 404 not found Update to Go 1.17.5 Update to Go 1.17.4 and remove timeout in resources.Get v0.90.1 Remove the retries on error in remote resources.Get Allow user to handle/ignore errors in resources.Get Make resource.Get return nil on 404 not found Update to Go 1.17.5 Update to Go 1.17.4 and remove timeout in resources.Get v0.90.0 Add custom font support to images.Text images: Fix cache busting of image text filter build(deps): bump github.com/getkin/kin-openapi from 0.80.0 to 0.85.0 images: Text filter that draws text with the given options tpl/transform: Optional options for highlight func deps: Upgrade github.com/evanw/esbuild v0.13.12 => v0.14.2 (note) releaser: Add "note" to Note regexp build(deps): bump github.com/mitchellh/mapstructure from 1.4.2 to 1.4.3 releaser: Rework and simplify to use GitHub only for release notes build(deps): bump google.golang.org/api from 0.51.0 to 0.61.0 media: Add rss suffix for application/rss+xml parser: Add a test case in format resolution lazy: Reset error in Reset Implement XML data support Validate private use language tags resources: Add timeout to the HTTP request in Get Add a remote retry for resources.Get Make resources.Get use a file cache for remote resources Remove empty href element from pagination template Check for empty deployment targets and matchers resources: Adjust the remote Get cache so it does not get evicted on restarts Add remote support to resources.Get Add deprecation warning to google_news template helpers: Make UniqueStringsReuse allocation free releaser: Prepare repository for 0.90.0-DEV releaser: Add release notes to /docs for release of 0.89.4 releaser: Bump versions for release of 0.89.4 releaser: Add release notes for 0.89.4 Fix content dir resolution when main project is a Hugo Module releaser: Prepare repository for 0.90.0-DEV releaser: Add release notes to /docs for release of 0.89.3 releaser: Bump versions for release of 0.89.3 releaser: Add release notes for 0.89.3 Improve error when we cannot determine content directory in "hugo new" deps: Upgrade github.com/yuin/goldmark v1.4.3 => v1.4.4 commands: Make sure pollInterval is always set create: Improve archetype directory discovery and tests create: Add a log statement when archetype is a directory create: Always print "Content ... created" commands: Fix missing file locking in server partial render modules: Improve error message releaser: Prepare repository for 0.90.0-DEV releaser: Add release notes to /docs for release of 0.89.2 releaser: Bump versions for release of 0.89.2 releaser: Add release notes for 0.89.2 Fix path resolution in hugo new deps: Upgrade github.com/yuin/goldmark v1.4.2 => v1.4.3 releaser: Prepare repository for 0.90.0-DEV releaser: Add release notes to /docs for release of 0.89.1 releaser: Bump versions for release of 0.89.1 releaser: Add release notes for 0.89.1 Revert "releaser: Fat MacOS binaries" create: Make sure the build lock is released before we open editor readme: Update dependency list releaser: Add "note" to Note regexp releaser: Rework and simplify to use GitHub only for release notes releaser: Simplify the release process releaser: Remove unused code docs: Regenerate docs helper v0.89.4 This is a bug-fix release with one important fix for people using hugo new to create new content: Fix content dir resolution when main project is a Hugo Module v0.89.3 This is a bug-fix release with a couple of important fixes. Improve error when we cannot determine content directory in "hugo new" deps: Upgrade github.com/yuin/goldmark v1.4.3 => v1.4.4 commands: Make sure pollInterval is always set create: Improve archetype directory discovery and tests create: Add a log statement when archetype is a directory create: Always print "Content ... created" commands: Fix missing file locking in server partial render modules: Improve error message v0.89.2 This is a bug-fix release with a couple of important fixes. Fix path resolution in hugo new deps: Upgrade github.com/yuin/goldmark v1.4.2 => v1.4.3 v0.89.1 This is a bug-fix release with a couple of important fixes. Revert "fat macOS binaries" create: Make sure the build lock is released before we open editor readme: Update dependency list v0.89.0 Notes Hugo now writes an empty file named .hugo_build.lock to the root of the project when building (also when doing hugo new mypost.md and other commands that requires a build). We recommend you just leave this file alone. Put it in .gitignore or similar if you don't want the file in your source repository. We have updated to ESBuild v0.13.12. The release notes for v0.13.0 mentions a potential breaking change. We now only build AMD64 release binaries (see this issue) for the Unix OSes (e.g. NetBSD). If you need, say, a binary for ARM64, you need to build it yourself. We now build only one release binary/archive for MacOS (see this issue) that works on both Intel and the new Arm M1 systems. .File.ContentBaseName now returns the owning directory name for all bundles (branch an leaf). This is a bug fix, but worth mentioning. See this issue. We have updated the Twitter shortcode to use Twitter's new API. Enhancements/Templates Use configured location when date passed to Format is string Add path.Clean Other Regen CLI docs f503b639 @bep Make ContentBaseName() return the directory for branch bundles Update Twitter shortcode oEmbed endpoint bump github.com/evanw/esbuild from 0.13.10 to 0.13.12 bump github.com/yuin/goldmark from 1.4.1 to 1.4.2 bump github.com/aws/aws-sdk-go from 1.40.8 to 1.41.14 bump github.com/getkin/kin-openapi from 0.79.0 to 0.80.0 bump github.com/evanw/esbuild from 0.13.8 to 0.13.10 Rename excepted filenames for image golden testdata bump github.com/frankban/quicktest from 1.13.1 to 1.14.0 Validate the target path in hugo new Set zone of datetime from from go-toml Added nodesource apt repository to snap package Set HUGO_ENABLEGITINFO=false override in Set_in_string Add includeFiles and excludeFiles to mount configuration bump github.com/mitchellh/mapstructure from 1.4.1 to 1.4.2 Always preserve the original transform error Add hyperlink to the banner bump github.com/getkin/kin-openapi from 0.78.0 to 0.79.0 github.com/evanw/esbuild v0.13.5 => v0.13.8 Return error on no content dirs Add a cross process build lock and use it in the archetype content builder github.com/alecthomas/chroma v0.9.2 => v0.9.4 Reimplement archetypes bump github.com/tdewolff/minify/v2 from 2.9.21 to 2.9.22 Update github.com/evanw/esbuild v0.13.5 bump github.com/mattn/go-isatty from 0.0.13 to 0.0.14 bump github.com/getkin/kin-openapi from 0.75.0 to 0.78.0 Allow multiple plugins in the PostCSS options map Create path.Clean documentation Skip a test assertion on CI Remove tracking image Revert "Remove credit from release notes" Pass minification errors to the user Clarify "precision" in currency format functions bump github.com/evanw/esbuild from 0.12.24 to 0.12.29 Use default math/rand.Source for concurrency safety Make the error handling for the mod commands more lenient Add some help text to the 'unknown revision' error Update github.com/yuin/goldmark v1.4.0 => v1.4.1 Fixes/Templates Fix time.Format with Go layouts Other Fix description of lang.FormatNumberCustom Fix typo in error message Fix panic when specifying multiple excludeFiles directives Fix file permissions in new archetype implementation Fix the "page picker" logic in --navigateToChanged Fix a typo on OpenBSD Fix value of useResourceCacheWhen in TestResourceChainPostCSS v0.88.1 This is a bug-fix release with one important fix. Bump down again to Go 1.16.7 for the release builds v0.88.0 Notes We have fixed a bug with the import order in js.Build for the case ./foo when both ./foo.js and ./foo/index.js exists. This is in line with how both Node and ESBuild's native import resolver does it. We discovered this trying to build AlpineJS v3 from source mounted in /assets. Enhancements/Templates Handle nil values in time.AsTime" Handle nil values in time.AsTime Other Run go mod tidy Don't fail on template errors on go mod graph etc. bump github.com/getkin/kin-openapi from 0.74.0 to 0.75.0 bump github.com/frankban/quicktest from 1.13.0 to 1.13.1 bump github.com/evanw/esbuild from 0.12.22 to 0.12.24 Avoid failing with "module not found" for hugo mod init and similar Update to Go 1.17 Remove Pygments from snapcraft.yml bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.0" Add tabindex when code is not highlighted bump github.com/evanw/esbuild from 0.12.17 to 0.12.22 bump golang.org/x/text from 0.3.6 to 0.3.7 bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.0 Prevent minifier from removing quoutes around post-processed attributes Avoid too many watch file handles causing the server to fail to start" Remove some pygments references Avoid too many watch file handles causing the server to fail to start bump github.com/getkin/kin-openapi from 0.68.0 to 0.74.0 Update github.com/spf13/cast v1.4.0 => v1.4.1 Import time/tzdata on Windows Indent TOML tables Fixes/Other Fix import order for ./foo when both ./foo.js and ./foo/index.js exists Fix it so disableKinds etc. does not get merged in from theme Fix lang.FormatPercent description module: pkgsrc subject: 'CVS commit: pkgsrc/www/hugo' unixtime: '1646489803' user: nikita