diff --git a/.github/workflows/calibreapp-image-actions.yml b/.github/workflows/calibreapp-image-actions.yml deleted file mode 100644 index 3d95fd0c8..000000000 --- a/.github/workflows/calibreapp-image-actions.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Compress images -on: pull_request -jobs: - build: - name: calibreapp/image-actions - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: calibreapp/image-actions - uses: docker://calibreapp/github-image-actions - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html index fd1b10b67..ecd585165 100644 --- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html +++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html @@ -1,70 +1,73 @@ - - - {{/* https://www.zachleat.com/web/preload/ */}} - - - - - {{/* NOTE: the Site's title, and if there is a page title, that is set too */}} - {{ block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} + + + {{/* https://www.zachleat.com/web/preload/ */}} + + + - - {{ hugo.Generator }} + + {{/* NOTE: the Site's title, and if there is a page title, that is set too */}} + {{ block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} - {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} - - {{ else }} - - {{ end }} + + {{ hugo.Generator }} - {{ range .AlternativeOutputFormats -}} - - {{ end -}} - - {{ $isDev := eq hugo.Environment "development" }} - {{ $stylesheet := resources.Get "output/css/app.css" }} - {{ if not $isDev }} - {{ $stylesheet = $stylesheet | minify | fingerprint }} - {{ end }} - {{ with $stylesheet }} - {{ if $isDev }} - - {{ else }} - - {{ end }} - {{ $.Scratch.Set "stylesheet" . }} - {{end}} + {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} + + {{ else }} + + {{ end }} + + {{ range .AlternativeOutputFormats -}} + + {{ end -}} + + {{ $isDev := eq hugo.Environment "development" }} + {{ $stylesheet := resources.Get "output/css/app.css" }} + {{ if not $isDev }} + {{ $stylesheet = $stylesheet | minify | fingerprint }} + {{ end }} + {{ with $stylesheet }} + {{ if $isDev }} + + {{ else }} + + {{ end }} + {{ $.Scratch.Set "stylesheet" . }} + {{end}} - {{ block "scripts" . }} - {{- partial "site-scripts.html" . -}} - {{ end }} - {{ partial "site-manifest.html" . }} - {{- partial "head-additions.html" . -}} - {{- template "_internal/opengraph.html" . -}} - {{- template "_internal/schema.html" . -}} - {{- template "_internal/twitter_cards.html" . -}} + {{ block "scripts" . }} + {{- partial "site-scripts.html" . -}} + {{ end }} + {{ partial "site-manifest.html" . }} + {{- partial "head-additions.html" . -}} + {{- template "_internal/opengraph.html" . -}} + {{- template "_internal/schema.html" . -}} + {{- template "_internal/twitter_cards.html" . -}} - {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} - {{ partial "gtag" . }} - {{ end }} + {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} + {{ partial "gtag" . }} + {{ end }} - - - - {{ block "nav" . }}{{ partial "site-nav.html" . }}{{ end }} - {{ block "header" . }}{{ end }} -
- {{ block "main" . }}{{ end }} -
- {{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }} - + - - + + {{ block "nav" . }}{{ partial "site-nav.html" . }}{{ end }} + {{ block "header" . }}{{ end }} +
+ {{ block "main" . }}{{ end }} +
+ + {{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }} + + + + + \ No newline at end of file diff --git a/content/en/content-management/build-options.md b/content/en/content-management/build-options.md index f402b9014..0cc72fdbe 100644 --- a/content/en/content-management/build-options.md +++ b/content/en/content-management/build-options.md @@ -21,7 +21,7 @@ They are stored in a reserved Front Matter object named `_build` with the follow ```yaml _build: render: true - list: true + list: always publishResources: true ``` @@ -29,7 +29,19 @@ _build: If true, the page will be treated as a published page, holding its dedicated output files (`index.html`, etc...) and permalink. #### list -If true, the page will be treated as part of the project's collections and, when appropriate, returned by Hugo's listing methods (`.Pages`, `.RegularPages` etc...). + +Note that we extended this property from a boolean to an enum in Hugo 0.58.0. + +Valid values are: + +never +: The page will not be included in any page collection. + +always (default) +: The page will be included in all page collections, e.g. `site.RegularPages`, `$page.Pages`. + +local +: The page will be included in any _local_ page collection, e.g. `$page.RegularPages`, `$page.Pages`. One use case for this would be to create fully navigable, but headless content sections. {{< new-in "0.58.0" >}} #### publishResources @@ -91,4 +103,4 @@ cascade: {{ .Content }} {{ end }} - \ No newline at end of file + diff --git a/content/en/content-management/comments.md b/content/en/content-management/comments.md index 26fffaaa6..a64108072 100644 --- a/content/en/content-management/comments.md +++ b/content/en/content-management/comments.md @@ -51,14 +51,14 @@ Disqus has its own [internal template](https://gohugo.io/templates/internal/#dis There are a few alternatives to commenting on static sites for those who do not want to use Disqus: -* [Static Man](https://staticman.net/) +* [Staticman](https://staticman.net/) * [Talkyard](https://www.talkyard.io/blog-comments) (Open source, & serverless hosting) * [IntenseDebate](https://intensedebate.com/) * [Graph Comment][] * [Muut](https://muut.com/) * [isso](https://posativ.org/isso/) (Self-hosted, Python) * [Tutorial on Implementing Isso with Hugo][issotutorial] -* [Utterances](https://utteranc.es/) (Open source, Github comments widget built on Github issues) +* [Utterances](https://utteranc.es/) (Open source, GitHub comments widget built on GitHub issues) * [Remark](https://github.com/umputun/remark) (Open source, Golang, Easy to run docker) * [Commento](https://commento.io/) (Open Source, available as a service, local install, or docker image) * [JustComments](https://just-comments.com) (Open Source, available as a service, can be self-hosted) diff --git a/content/en/content-management/image-processing/index.md b/content/en/content-management/image-processing/index.md index 9efb3b6bf..e865b0846 100644 --- a/content/en/content-management/image-processing/index.md +++ b/content/en/content-management/image-processing/index.md @@ -4,7 +4,7 @@ description: "Image Page resources can be resized and cropped." date: 2018-01-24T13:10:00-05:00 linktitle: "Image Processing" categories: ["content management"] -keywords: [resources,images] +keywords: [resources, images] weight: 4004 draft: false toc: true @@ -28,7 +28,6 @@ To get all images in a [Page Bundle]({{< relref "/content-management/organizatio ## Image Processing Methods - The `image` resource implements the methods `Resize`, `Fit` and `Fill`, each returning the transformed image using the specified dimensions and processing options. The `image` resource also, since Hugo 0.58, implements the method `Exif` and `Filter`. ### Resize @@ -37,27 +36,29 @@ Resizes the image to the specified width and height. ```go // Resize to a width of 600px and preserve ratio -{{ $image := $resource.Resize "600x" }} +{{ $image := $resource.Resize "600x" }} // Resize to a height of 400px and preserve ratio -{{ $image := $resource.Resize "x400" }} +{{ $image := $resource.Resize "x400" }} // Resize to a width 600px and a height of 400px {{ $image := $resource.Resize "600x400" }} ``` ### Fit + Scale down the image to fit the given dimensions while maintaining aspect ratio. Both height and width are required. ```go -{{ $image := $resource.Fit "600x400" }} +{{ $image := $resource.Fit "600x400" }} ``` ### Fill + Resize and crop the image to match the given dimensions. Both height and width are required. ```go -{{ $image := $resource.Fill "600x400" }} +{{ $image := $resource.Fill "600x400" }} ``` ### Filter @@ -74,7 +75,7 @@ The above can also be written in a more functional style using pipes: {{ $img = $img | images.Filter (images.GaussianBlur 6) (images.Pixelate 8) }} ``` -The filters will be applied in the given order. +The filters will be applied in the given order. Sometimes it can be useful to create the filter chain once and then reuse it: @@ -94,7 +95,7 @@ Note that this is only suported for JPEG and TIFF images, so it's recommended to {{ with $img.Exif }} Date: {{ .Date }} Lat/Long: {{ .Lat}}/{{ .Long }} -Tags: +Tags: {{ range $k, $v := .Tags }} TAG: {{ $k }}: {{ $v }} {{ end }} @@ -104,14 +105,22 @@ TAG: {{ $k }}: {{ $v }} Or individually access EXIF data with dot access, e.g.: ```go-html-template -{{ with $img.Exif }} -Date: {{ .Date }} -Lat/Long: {{ .Lat }}/{{ .Long }} -Aperture: {{ .Tags.ApertureValue }} -Focal Length: {{ .Tags.FocalLength }} +{{ with $src.Exif }} + {{ end }} ``` +Some fields may need to be formatted with [`lang.NumFmt`]({{< relref "functions/numfmt" >}}) function to prevent display like `Aperture: 2.278934289` instead of `Aperture: 2.28`. + #### Exif fields Date @@ -125,10 +134,6 @@ Long See [Image Processing Config](#image-processing-config) for how to configure what gets included in Exif. - - - - ## Image Processing Options In addition to the dimensions (e.g. `600x400`), Hugo supports a set of additional image options. @@ -148,6 +153,7 @@ For color codes, see https://www.google.com/search?q=color+picker **Note** that you also set a default background color to use, see [Image Processing Config](#image-processing-config). ### JPEG Quality + Only relevant for JPEG images, values 1 to 100 inclusive, higher is better. Default is 75. ```go @@ -155,14 +161,16 @@ Only relevant for JPEG images, values 1 to 100 inclusive, higher is better. Defa ``` ### Rotate + Rotates an image by the given angle counter-clockwise. The rotation will be performed first to get the dimensions correct. The main use of this is to be able to manually correct for [EXIF orientation](https://github.com/golang/go/issues/4341) of JPEG images. ```go {{ $image.Resize "600x r90" }} ``` -### Anchor -Only relevant for the `Fill` method. This is useful for thumbnail generation where the main motive is located in, say, the left corner. +### Anchor + +Only relevant for the `Fill` method. This is useful for thumbnail generation where the main motive is located in, say, the left corner. Valid are `Center`, `TopLeft`, `Top`, `TopRight`, `Left`, `Right`, `BottomLeft`, `Bottom`, `BottomRight`. ```go @@ -170,11 +178,12 @@ Valid are `Center`, `TopLeft`, `Top`, `TopRight`, `Left`, `Right`, `BottomLeft`, ``` ### Resample Filter -Filter used in resizing. Default is `Box`, a simple and fast resampling filter appropriate for downscaling. + +Filter used in resizing. Default is `Box`, a simple and fast resampling filter appropriate for downscaling. Examples are: `Box`, `NearestNeighbor`, `Linear`, `Gaussian`. -See https://github.com/disintegration/imaging for more. If you want to trade quality for faster processing, this may be a option to test. +See https://github.com/disintegration/imaging for more. If you want to trade quality for faster processing, this may be a option to test. ```go {{ $image.Resize "600x400 Gaussian" }} @@ -194,7 +203,6 @@ Valid values are `jpg`, `png`, `tif`, `bmp`, and `gif`. _The photo of the sunset used in the examples below is Copyright [Bjørn Erik Pedersen](https://commons.wikimedia.org/wiki/User:Bep) (Creative Commons Attribution-Share Alike 4.0 International license)_ - {{< imgproc sunset Resize "300x" />}} {{< imgproc sunset Fill "90x120 left" />}} @@ -205,12 +213,10 @@ _The photo of the sunset used in the examples below is Copyright [Bjørn Erik Pe {{< imgproc sunset Resize "300x q10" />}} - This is the shortcode used in the examples above: - {{< code file="layouts/shortcodes/imgproc.html" >}} -{{< readfile file="layouts/shortcodes/imgproc.html" >}} +{{< readfile file="layouts/shortcodes/imgproc.html" >}} {{< /code >}} And it is used like this: @@ -219,7 +225,6 @@ And it is used like this: {{}} ``` - {{% note %}} **Tip:** Note the self-closing shortcode syntax above. The `imgproc` shortcode can be called both with and without **inner content**. {{% /note %}} @@ -244,7 +249,7 @@ quality = 75 # Valid values are Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight anchor = "smart" -# Default background color. +# Default background color. # Hugo will preserve transparency for target formats that supports it, # but will fall back to this color for JPEG. # Expects a standard HEX color string with 3 or 6 digits. @@ -281,15 +286,13 @@ By default, Hugo will use the [Smartcrop](https://github.com/muesli/smartcrop), An example using the sunset image from above: - {{< imgproc sunset Fill "200x200 smart" />}} - ## Image Processing Performance Consideration Processed images are stored below `/resources` (can be set with `resourceDir` config setting). This folder is deliberately placed in the project, as it is recommended to check these into source control as part of the project. These images are not "Hugo fast" to generate, but once generated they can be reused. -If you change your image settings (e.g. size), remove or rename images etc., you will end up with unused images taking up space and cluttering your project. +If you change your image settings (e.g. size), remove or rename images etc., you will end up with unused images taking up space and cluttering your project. To clean up, run: @@ -297,10 +300,6 @@ To clean up, run: hugo --gc ``` - {{% note %}} **GC** is short for **Garbage Collection**. {{% /note %}} - - - diff --git a/content/en/functions/where.md b/content/en/functions/where.md index ece4acb21..be95c127b 100644 --- a/content/en/functions/where.md +++ b/content/en/functions/where.md @@ -114,7 +114,7 @@ You can also put the returned value of the `where` clauses into a variable: ## Use `where` with `first` -Using `first` and [`where`][wherefunction] together can be very +Using `first` and `where` together can be very powerful. Below snippet gets a list of posts only from [**main sections**](#mainsections), sorts it using the [default ordering](/templates/lists/) for lists (i.e., `weight => date`), and diff --git a/content/en/getting-started/configuration.md b/content/en/getting-started/configuration.md index e4a788e29..c59aab986 100644 --- a/content/en/getting-started/configuration.md +++ b/content/en/getting-started/configuration.md @@ -193,6 +193,9 @@ markup menu : See [Add Non-content Entries to a Menu](/content-management/menus/#add-non-content-entries-to-a-menu). +minify +: See [Configure Minify](#configure-minify) + module : Module config see [Module Config](/hugo-modules/configuration/).{{< new-in "0.56.0" >}} @@ -481,6 +484,14 @@ The above will try first to extract the value for `.Date` from the filename, the Hugo v0.20 introduced the ability to render your content to multiple output formats (e.g., to JSON, AMP html, or CSV). See [Output Formats][] for information on how to add these values to your Hugo project's configuration file. +## Configure Minify + +{{< new-in "0.68.0" >}} + +Default configuration: + +{{< code-toggle config="minify" />}} + ## Configure File Caches Since Hugo 0.52 you can configure more than just the `cacheDir`. This is the default configuration: @@ -504,7 +515,7 @@ dir = ":cacheDir/modules" maxAge = -1 ``` -You can override any of these cache setting in your own `config.toml`. +You can override any of these cache settings in your own `config.toml`. ### The keywords explained diff --git a/content/en/getting-started/directory-structure.md b/content/en/getting-started/directory-structure.md index 3bddcd073..81b07272c 100644 --- a/content/en/getting-started/directory-structure.md +++ b/content/en/getting-started/directory-structure.md @@ -71,6 +71,9 @@ used by Hugo when generating your website. You can write these files in YAML, JS From **Hugo 0.31** you can have multiple static directories. {{% /note %}} +resources +: Caches some files to speed up generation. Can be also used by template authors to distribute built SASS files, so you don't have to have the preprocessor installed. Note: resources directory is not created by default. + [archetypes]: /content-management/archetypes/ [configuration directives]: /getting-started/configuration/#all-variables-yaml diff --git a/content/en/news/0.68.0-relnotes/hugo-68-featured.png b/content/en/news/0.68.0-relnotes/hugo-68-featured.png new file mode 100644 index 000000000..0696d990d Binary files /dev/null and b/content/en/news/0.68.0-relnotes/hugo-68-featured.png differ diff --git a/content/en/news/0.68.0-relnotes/index.md b/content/en/news/0.68.0-relnotes/index.md new file mode 100644 index 000000000..507249a21 --- /dev/null +++ b/content/en/news/0.68.0-relnotes/index.md @@ -0,0 +1,57 @@ + +--- +date: 2020-03-21 +title: "Minify config and more!" +description: "Hugo 0.68.0 brings minify configuration and fully navigable headless sections." +categories: ["Releases"] +--- + + +This release (finally) brings minify configuration, a big thanks to [@satotake](https://github.com/satotake) for that contribution. See [Configure Minify](https://gohugo.io/getting-started/configuration/#configure-minify) for details. + +We have also extended the [Page Build Options](https://gohugo.io/content-management/build-options/) to allow fully navigable headless sections. + +This release represents **17 contributions by 6 contributors** to the main Hugo code base.[@bep](https://github.com/bep) leads the Hugo development with a significant amount of contributions, but also a big shoutout to [@evankanderson](https://github.com/evankanderson), [@QuLogic](https://github.com/QuLogic), and [@le0tan](https://github.com/le0tan) for their ongoing contributions. + +And a big thanks to [@digitalcraftsman](https://github.com/digitalcraftsman) and [@onedrawingperday](https://github.com/onedrawingperday) for their relentless work on keeping the themes site in pristine condition and to [@davidsneighbour](https://github.com/davidsneighbour) and [@kaushalmodi](https://github.com/kaushalmodi) for all the great work on the documentation site. + +Many have also been busy writing and fixing the documentation in [hugoDocs](https://github.com/gohugoio/hugoDocs), +which has received **3 contributions by 3 contributors**. + +Hugo now has: + +* 42462+ [stars](https://github.com/gohugoio/hugo/stargazers) +* 439+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors) +* 300+ [themes](http://themes.gohugo.io/) + +## Enhancements + +### Other + +* Some minify configuration adjustments [7204b354](https://github.com/gohugoio/hugo/commit/7204b354a9f46778f068a4712447d6d4fefbefd8) [@bep](https://github.com/bep) +* Add minify config [574c2959](https://github.com/gohugoio/hugo/commit/574c2959b8d3338764fa1db102a5e0fd6ed322d9) [@satotake](https://github.com/satotake) [#6750](https://github.com/gohugoio/hugo/issues/6750)[#6892](https://github.com/gohugoio/hugo/issues/6892) +* Allow headless bundles to list pages via $page.Pages and $page.RegularPages [99958f90](https://github.com/gohugoio/hugo/commit/99958f90fedec11d749a1397300860aa8e8459c2) [@bep](https://github.com/bep) [#7075](https://github.com/gohugoio/hugo/issues/7075) +* Update to Go 1.14.1 and 1.13.9 [1d91d8e1](https://github.com/gohugoio/hugo/commit/1d91d8e14b13bd135dc4d4a901fc936c9649b219) [@bep](https://github.com/bep) [#7078](https://github.com/gohugoio/hugo/issues/7078) +* Pass directory name to filters in LstatIfPossible in the same way as Readdir [cc2a5d52](https://github.com/gohugoio/hugo/commit/cc2a5d52a4ad188d93aeb2d51d5c19c7661e098d) [@evankanderson](https://github.com/evankanderson) +* Update to goldmark 1.1.25. [52c159c4](https://github.com/gohugoio/hugo/commit/52c159c452ab7f48369b5cc9ecc57ecc8dc91654) [@QuLogic](https://github.com/QuLogic) +* Add workaround for regular CSS imports in SCSS [1a8af7d4](https://github.com/gohugoio/hugo/commit/1a8af7d4f087256710ae0bdf504ed53c0c24a211) [@bep](https://github.com/bep) [#7059](https://github.com/gohugoio/hugo/issues/7059) +* Add .RegularPagesRecursive [03b93bb9](https://github.com/gohugoio/hugo/commit/03b93bb9884ea479c855c2699e8c7b039dce6224) [@bep](https://github.com/bep) [#6411](https://github.com/gohugoio/hugo/issues/6411) +* Add data context to the key in ExecuteAsTemplate [18cb21ff](https://github.com/gohugoio/hugo/commit/18cb21ff2e4a60e7094908e4d6113a9d5a086316) [@bep](https://github.com/bep) [#7046](https://github.com/gohugoio/hugo/issues/7046) +* Improve Tailwind/PostCSS error messages [df298558](https://github.com/gohugoio/hugo/commit/df298558a5a5b747288d9656402af85e0ac75a43) [@bep](https://github.com/bep) [#7041](https://github.com/gohugoio/hugo/issues/7041)[#7042](https://github.com/gohugoio/hugo/issues/7042) +* Update Blackfriday [b1106f87](https://github.com/gohugoio/hugo/commit/b1106f8715cac3544b8ea662b969336fe56fa047) [@bep](https://github.com/bep) [#7039](https://github.com/gohugoio/hugo/issues/7039) +* Add languageDirection to language configuration [5914f91b](https://github.com/gohugoio/hugo/commit/5914f91b6c980e42693661d5fd5640e237691df6) [@le0tan](https://github.com/le0tan) [#6550](https://github.com/gohugoio/hugo/issues/6550) + +## Fixes + +### Other + +* Fix Go build version [2ebb9f54](https://github.com/gohugoio/hugo/commit/2ebb9f5484162062c74698237bcdaa31cb8666b9) [@bep](https://github.com/bep) +* Fix GetTerms nil pointer [95f49211](https://github.com/gohugoio/hugo/commit/95f492114e33fc6e4d9dcfd2b7c1eca5c50d755f) [@carlmjohnson](https://github.com/carlmjohnson) [#7061](https://github.com/gohugoio/hugo/issues/7061) +* Fix scss vs css import regexp [c7b6d74e](https://github.com/gohugoio/hugo/commit/c7b6d74e898c78da9f5e272e528ff9654206576e) [@bep](https://github.com/bep) [#7063](https://github.com/gohugoio/hugo/issues/7063) +* Fix --templateMetricsHints [5eadc4c0](https://github.com/gohugoio/hugo/commit/5eadc4c0a8e5c51e72670591c4b7877e79c15e3c) [@bep](https://github.com/bep) [#7048](https://github.com/gohugoio/hugo/issues/7048) +* Try to fix a Go 1.15 go vet error [c0177fe2](https://github.com/gohugoio/hugo/commit/c0177fe2b28eb09d1534e62370849c3f1d70b40f) [@bep](https://github.com/bep) + + + + + diff --git a/content/en/news/0.68.1-relnotes/index.md b/content/en/news/0.68.1-relnotes/index.md new file mode 100644 index 000000000..ab9946b8e --- /dev/null +++ b/content/en/news/0.68.1-relnotes/index.md @@ -0,0 +1,19 @@ + +--- +date: 2020-03-22 +title: "Hugo 0.68.1: 1 bug fix" +description: "This release reverts a change in resources.ExecuteAsTemplate that broke some theme demos." +categories: ["Releases"] +images: +- images/blog/hugo-bug-poster.png + +--- + + + +This is a bug-fix release with one important fix. + +* Revert "resources: Add data context to the key in ExecuteAsTemplate" [c9dc316a](https://github.com/gohugoio/hugo/commit/c9dc316ad160e78c9dff4e75313db4cac8ea6414) [@bep](https://github.com/bep) [#7064](https://github.com/gohugoio/hugo/issues/7064) + + + diff --git a/content/en/news/0.68.2-relnotes/index.md b/content/en/news/0.68.2-relnotes/index.md new file mode 100644 index 000000000..c61d1012a --- /dev/null +++ b/content/en/news/0.68.2-relnotes/index.md @@ -0,0 +1,19 @@ + +--- +date: 2020-03-24T12:00:00-05:00 +title: "Hugo 0.68.2: A couple of Bug Fixes" +description: "This version fixes a couple of bugs introduced in 0.68.0." +categories: ["Releases"] +images: +- images/blog/hugo-bug-poster.png + +--- + + + +This is a bug-fix release with one important fix. + +* Fix cache reset for a page's collections on server live reload [cfa73050](https://github.com/gohugoio/hugo/commit/cfa73050a49b2646fe3557cefa0ed31989b0eeeb) [@bep](https://github.com/bep) [#7085](https://github.com/gohugoio/hugo/issues/7085) + + + diff --git a/content/en/news/0.68.3-relnotes/index.md b/content/en/news/0.68.3-relnotes/index.md new file mode 100644 index 000000000..3855aadf3 --- /dev/null +++ b/content/en/news/0.68.3-relnotes/index.md @@ -0,0 +1,19 @@ + +--- +date: 2020-03-24T13:00:00-05:00 +title: "Hugo 0.68.3: A couple of Bug Fixes" +description: "This version fixes a couple of bugs introduced in 0.68.0." +categories: ["Releases"] +images: +- images/blog/hugo-bug-poster.png + +--- + + + +This is a bug-fix release with one important fix. + +* Fix _build.list.local logic [523d5194](https://github.com/gohugoio/hugo/commit/523d51948fc20e2afb4721b43203c5ab696ae220) [@bep](https://github.com/bep) [#7089](https://github.com/gohugoio/hugo/issues/7089) + + + diff --git a/data/docs.json b/data/docs.json index 942f04fb0..9a5b47676 100644 --- a/data/docs.json +++ b/data/docs.json @@ -1415,7 +1415,7 @@ "goldmark": { "renderer": { "hardWraps": false, - "xHTML": false, + "xhtml": false, "unsafe": false }, "parser": { @@ -1451,6 +1451,36 @@ "footnoteAnchorPrefix": "", "footnoteReturnLinkContents": "" } + }, + "minify": { + "minifyOutput": false, + "disableHTML": false, + "disableCSS": false, + "disableJS": false, + "disableJSON": false, + "disableSVG": false, + "disableXML": false, + "tdewolff": { + "html": { + "keepConditionalComments": true, + "keepDefaultAttrVals": true, + "keepDocumentTags": true, + "keepEndTags": true, + "keepWhitespace": false + }, + "css": { + "decimals": -1, + "keepCSS2": true + }, + "js": {}, + "json": {}, + "svg": { + "decimals": -1 + }, + "xml": { + "keepWhitespace": false + } + } } }, "media": { @@ -3192,6 +3222,12 @@ "Aliases": null, "Examples": null }, + "IsProduction": { + "Description": "", + "Args": null, + "Aliases": null, + "Examples": null + }, "Version": { "Description": "", "Args": null, @@ -3544,6 +3580,19 @@ ] ] }, + "Sqrt": { + "Description": "Sqrt returns the square root of a number.\nNOTE: will return for NaN for negative values of a", + "Args": [ + "a" + ], + "Aliases": null, + "Examples": [ + [ + "{{math.Sqrt 81}}", + "9" + ] + ] + }, "Sub": { "Description": "Sub subtracts two numbers.", "Args": [ diff --git a/go.mod b/go.mod index eb7033c89..2276b1077 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/gohugoio/hugoDocs go 1.12 -require github.com/gohugoio/gohugoioTheme v0.0.0-20200128164921-1d0bc5482051 // indirect +require github.com/gohugoio/gohugoioTheme v0.0.0-20200328100657-2bfd5f8c6aee // indirect diff --git a/go.sum b/go.sum index 4495bdd92..a1c56c5e9 100644 --- a/go.sum +++ b/go.sum @@ -11,3 +11,9 @@ github.com/gohugoio/gohugoioTheme v0.0.0-20200123205007-5d6620a0db26 h1:acXfduib github.com/gohugoio/gohugoioTheme v0.0.0-20200123205007-5d6620a0db26/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs= github.com/gohugoio/gohugoioTheme v0.0.0-20200128164921-1d0bc5482051 h1:cS14MnUGS6xwWYfPNshimm8HdMCZiYBxWkCD0VnvgVw= github.com/gohugoio/gohugoioTheme v0.0.0-20200128164921-1d0bc5482051/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs= +github.com/gohugoio/gohugoioTheme v0.0.0-20200327225449-368f4cbef8d7 h1:cZ+ahAjSetbFv3aDJ9ipDbKyqaVlmkbSZ5cULgBTh+w= +github.com/gohugoio/gohugoioTheme v0.0.0-20200327225449-368f4cbef8d7/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs= +github.com/gohugoio/gohugoioTheme v0.0.0-20200327231942-7f80b3d02bfa h1:kG+O/wT9UXomzp5eQiUuFVZ0l7YylAW6EVPLyjMxi/c= +github.com/gohugoio/gohugoioTheme v0.0.0-20200327231942-7f80b3d02bfa/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs= +github.com/gohugoio/gohugoioTheme v0.0.0-20200328100657-2bfd5f8c6aee h1:PJZhCwnuVLyafDWNPSHk9iJvk6gEIvPRnycy7Pq3peA= +github.com/gohugoio/gohugoioTheme v0.0.0-20200328100657-2bfd5f8c6aee/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs= diff --git a/netlify.toml b/netlify.toml index e6e5eca81..f7b857cab 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" command = "hugo --gc --minify" [context.production.environment] -HUGO_VERSION = "0.67.1" +HUGO_VERSION = "0.68.3" HUGO_ENV = "production" HUGO_ENABLEGITINFO = "true" @@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true" command = "hugo --gc --minify --enableGitInfo" [context.split1.environment] -HUGO_VERSION = "0.67.1" +HUGO_VERSION = "0.68.3" HUGO_ENV = "production" [context.deploy-preview] command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" [context.deploy-preview.environment] -HUGO_VERSION = "0.67.1" +HUGO_VERSION = "0.68.3" [context.branch-deploy] command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" [context.branch-deploy.environment] -HUGO_VERSION = "0.67.1" +HUGO_VERSION = "0.68.3" [context.next.environment] HUGO_ENABLEGITINFO = "true" diff --git a/resources/_gen/images/news/0.68.0-relnotes/hugo-68-featured_hubf411be7de0d7016f242fc7f0c46d71c_65337_480x0_resize_catmullrom_2.png b/resources/_gen/images/news/0.68.0-relnotes/hugo-68-featured_hubf411be7de0d7016f242fc7f0c46d71c_65337_480x0_resize_catmullrom_2.png new file mode 100644 index 000000000..3a30c941c Binary files /dev/null and b/resources/_gen/images/news/0.68.0-relnotes/hugo-68-featured_hubf411be7de0d7016f242fc7f0c46d71c_65337_480x0_resize_catmullrom_2.png differ diff --git a/resources/_gen/images/news/0.68.0-relnotes/hugo-68-featured_hubf411be7de0d7016f242fc7f0c46d71c_65337_640x0_resize_catmullrom_2.png b/resources/_gen/images/news/0.68.0-relnotes/hugo-68-featured_hubf411be7de0d7016f242fc7f0c46d71c_65337_640x0_resize_catmullrom_2.png new file mode 100644 index 000000000..c0a787aff Binary files /dev/null and b/resources/_gen/images/news/0.68.0-relnotes/hugo-68-featured_hubf411be7de0d7016f242fc7f0c46d71c_65337_640x0_resize_catmullrom_2.png differ