mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Merge commit 'c494c37a4523fbf2db6274dc87e0877fd5bec24b'
This commit is contained in:
commit
3d84ef9720
18 changed files with 117 additions and 118 deletions
|
@ -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 }}
|
|
|
@ -1,70 +1,73 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html class="no-js" lang="{{ with $.Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
|
<html class="no-js" lang="{{ with $.Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
{{/* https://www.zachleat.com/web/preload/ */}}
|
|
||||||
<link rel="preload" href="{{ "fonts/muli-latin-200.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
|
||||||
<link rel="preload" href="{{ "fonts/muli-latin-400.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
|
||||||
<link rel="preload" href="{{ "fonts/muli-latin-800.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
|
||||||
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<head>
|
||||||
{{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
|
<meta charset="utf-8">
|
||||||
<title>{{ block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
{{/* https://www.zachleat.com/web/preload/ */}}
|
||||||
|
<link rel="preload" href="{{ "fonts/muli-latin-200.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
||||||
|
<link rel="preload" href="{{ "fonts/muli-latin-400.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
||||||
|
<link rel="preload" href="{{ "fonts/muli-latin-800.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
{{ hugo.Generator }}
|
{{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
|
||||||
|
<title>{{ block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||||
|
|
||||||
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||||
<meta name="robots" content="index, follow">
|
{{ hugo.Generator }}
|
||||||
{{ else }}
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ range .AlternativeOutputFormats -}}
|
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
<meta name="robots" content="index, follow">
|
||||||
{{ end -}}
|
{{ else }}
|
||||||
|
<meta name="robots" content="noindex, nofollow">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ $isDev := eq hugo.Environment "development" }}
|
{{ range .AlternativeOutputFormats -}}
|
||||||
{{ $stylesheet := resources.Get "output/css/app.css" }}
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
||||||
{{ if not $isDev }}
|
{{ end -}}
|
||||||
{{ $stylesheet = $stylesheet | minify | fingerprint }}
|
|
||||||
{{ end }}
|
{{ $isDev := eq hugo.Environment "development" }}
|
||||||
{{ with $stylesheet }}
|
{{ $stylesheet := resources.Get "output/css/app.css" }}
|
||||||
{{ if $isDev }}
|
{{ if not $isDev }}
|
||||||
<link rel="stylesheet" href="{{ .RelPermalink }}" crossorigin="anonymous">
|
{{ $stylesheet = $stylesheet | minify | fingerprint }}
|
||||||
{{ else }}
|
{{ end }}
|
||||||
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
{{ with $stylesheet }}
|
||||||
{{ end }}
|
{{ if $isDev }}
|
||||||
{{ $.Scratch.Set "stylesheet" . }}
|
<link rel="stylesheet" href="{{ .RelPermalink }}" crossorigin="anonymous">
|
||||||
{{end}}
|
{{ else }}
|
||||||
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||||
|
{{ end }}
|
||||||
|
{{ $.Scratch.Set "stylesheet" . }}
|
||||||
|
{{end}}
|
||||||
|
|
||||||
|
|
||||||
{{ block "scripts" . }}
|
{{ block "scripts" . }}
|
||||||
{{- partial "site-scripts.html" . -}}
|
{{- partial "site-scripts.html" . -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ partial "site-manifest.html" . }}
|
{{ partial "site-manifest.html" . }}
|
||||||
{{- partial "head-additions.html" . -}}
|
{{- partial "head-additions.html" . -}}
|
||||||
{{- template "_internal/opengraph.html" . -}}
|
{{- template "_internal/opengraph.html" . -}}
|
||||||
{{- template "_internal/schema.html" . -}}
|
{{- template "_internal/schema.html" . -}}
|
||||||
{{- template "_internal/twitter_cards.html" . -}}
|
{{- template "_internal/twitter_cards.html" . -}}
|
||||||
|
|
||||||
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||||
{{ partial "gtag" . }}
|
{{ partial "gtag" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body class="ma0 sans-serif bg-primary-color-light{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
|
|
||||||
{{ block "nav" . }}{{ partial "site-nav.html" . }}{{ end }}
|
|
||||||
{{ block "header" . }}{{ end }}
|
|
||||||
<main role="main" class="content-with-sidebar min-vh-100 pb7 pb0-ns">
|
|
||||||
{{ block "main" . }}{{ end }}
|
|
||||||
</main>
|
|
||||||
|
|
||||||
{{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }}
|
<body class="ma0 sans-serif bg-primary-color-light{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
|
||||||
|
{{ block "nav" . }}{{ partial "site-nav.html" . }}{{ end }}
|
||||||
|
{{ block "header" . }}{{ end }}
|
||||||
|
<main role="main" class="content-with-sidebar min-vh-100 pb7 pb0-ns">
|
||||||
|
{{ block "main" . }}{{ end }}
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }}
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -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:
|
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)
|
* [Talkyard](https://www.talkyard.io/blog-comments) (Open source, & serverless hosting)
|
||||||
* [IntenseDebate](https://intensedebate.com/)
|
* [IntenseDebate](https://intensedebate.com/)
|
||||||
* [Graph Comment][]
|
* [Graph Comment][]
|
||||||
* [Muut](https://muut.com/)
|
* [Muut](https://muut.com/)
|
||||||
* [isso](https://posativ.org/isso/) (Self-hosted, Python)
|
* [isso](https://posativ.org/isso/) (Self-hosted, Python)
|
||||||
* [Tutorial on Implementing Isso with Hugo][issotutorial]
|
* [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)
|
* [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)
|
* [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)
|
* [JustComments](https://just-comments.com) (Open Source, available as a service, can be self-hosted)
|
||||||
|
|
|
@ -4,7 +4,7 @@ description: "Image Page resources can be resized and cropped."
|
||||||
date: 2018-01-24T13:10:00-05:00
|
date: 2018-01-24T13:10:00-05:00
|
||||||
linktitle: "Image Processing"
|
linktitle: "Image Processing"
|
||||||
categories: ["content management"]
|
categories: ["content management"]
|
||||||
keywords: [resources,images]
|
keywords: [resources, images]
|
||||||
weight: 4004
|
weight: 4004
|
||||||
draft: false
|
draft: false
|
||||||
toc: true
|
toc: true
|
||||||
|
@ -28,7 +28,6 @@ To get all images in a [Page Bundle]({{< relref "/content-management/organizatio
|
||||||
|
|
||||||
## Image Processing Methods
|
## 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`.
|
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
|
### Resize
|
||||||
|
@ -47,6 +46,7 @@ Resizes the image to the specified width and height.
|
||||||
```
|
```
|
||||||
|
|
||||||
### Fit
|
### Fit
|
||||||
|
|
||||||
Scale down the image to fit the given dimensions while maintaining aspect ratio. Both height and width are required.
|
Scale down the image to fit the given dimensions while maintaining aspect ratio. Both height and width are required.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
@ -54,6 +54,7 @@ Scale down the image to fit the given dimensions while maintaining aspect ratio.
|
||||||
```
|
```
|
||||||
|
|
||||||
### Fill
|
### Fill
|
||||||
|
|
||||||
Resize and crop the image to match the given dimensions. Both height and width are required.
|
Resize and crop the image to match the given dimensions. Both height and width are required.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
@ -104,14 +105,22 @@ TAG: {{ $k }}: {{ $v }}
|
||||||
Or individually access EXIF data with dot access, e.g.:
|
Or individually access EXIF data with dot access, e.g.:
|
||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
{{ with $img.Exif }}
|
{{ with $src.Exif }}
|
||||||
Date: {{ .Date }}
|
<ul>
|
||||||
Lat/Long: {{ .Lat }}/{{ .Long }}
|
{{ with .Date }}<li>Date: {{ .Format "January 02, 2006" }}</li>{{ end }}
|
||||||
Aperture: {{ .Tags.ApertureValue }}
|
{{ with .Tags.ApertureValue }}<li>Aperture: {{ lang.NumFmt 2 . }}</li>{{ end }}
|
||||||
Focal Length: {{ .Tags.FocalLength }}
|
{{ with .Tags.BrightnessValue }}<li>Brightness: {{ lang.NumFmt 2 . }}</li>{{ end }}
|
||||||
|
{{ with .Tags.ExposureTime }}<li>Exposure Time: {{ . }}</li>{{ end }}
|
||||||
|
{{ with .Tags.FNumber }}<li>F Number: {{ . }}</li>{{ end }}
|
||||||
|
{{ with .Tags.FocalLength }}<li>Focal Length: {{ . }}</li>{{ end }}
|
||||||
|
{{ with .Tags.ISOSpeedRatings }}<li>ISO Speed Ratings: {{ . }}</li>{{ end }}
|
||||||
|
{{ with .Tags.LensModel }}<li>Lens Model: {{ . }}</li>{{ end }}
|
||||||
|
</ul>
|
||||||
{{ end }}
|
{{ 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
|
#### Exif fields
|
||||||
|
|
||||||
Date
|
Date
|
||||||
|
@ -125,10 +134,6 @@ Long
|
||||||
|
|
||||||
See [Image Processing Config](#image-processing-config) for how to configure what gets included in Exif.
|
See [Image Processing Config](#image-processing-config) for how to configure what gets included in Exif.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Image Processing Options
|
## Image Processing Options
|
||||||
|
|
||||||
In addition to the dimensions (e.g. `600x400`), Hugo supports a set of additional image 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).
|
**Note** that you also set a default background color to use, see [Image Processing Config](#image-processing-config).
|
||||||
|
|
||||||
### JPEG Quality
|
### JPEG Quality
|
||||||
|
|
||||||
Only relevant for JPEG images, values 1 to 100 inclusive, higher is better. Default is 75.
|
Only relevant for JPEG images, values 1 to 100 inclusive, higher is better. Default is 75.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
@ -155,13 +161,15 @@ Only relevant for JPEG images, values 1 to 100 inclusive, higher is better. Defa
|
||||||
```
|
```
|
||||||
|
|
||||||
### Rotate
|
### 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.
|
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
|
```go
|
||||||
{{ $image.Resize "600x r90" }}
|
{{ $image.Resize "600x r90" }}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Anchor
|
### Anchor
|
||||||
|
|
||||||
Only relevant for the `Fill` method. This is useful for thumbnail generation where the main motive is located in, say, the left corner.
|
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`.
|
Valid are `Center`, `TopLeft`, `Top`, `TopRight`, `Left`, `Right`, `BottomLeft`, `Bottom`, `BottomRight`.
|
||||||
|
|
||||||
|
@ -170,6 +178,7 @@ Valid are `Center`, `TopLeft`, `Top`, `TopRight`, `Left`, `Right`, `BottomLeft`,
|
||||||
```
|
```
|
||||||
|
|
||||||
### Resample Filter
|
### 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`.
|
Examples are: `Box`, `NearestNeighbor`, `Linear`, `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)_
|
_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 Resize "300x" />}}
|
||||||
|
|
||||||
{{< imgproc sunset Fill "90x120 left" />}}
|
{{< imgproc sunset Fill "90x120 left" />}}
|
||||||
|
@ -205,10 +213,8 @@ _The photo of the sunset used in the examples below is Copyright [Bjørn Erik Pe
|
||||||
|
|
||||||
{{< imgproc sunset Resize "300x q10" />}}
|
{{< imgproc sunset Resize "300x q10" />}}
|
||||||
|
|
||||||
|
|
||||||
This is the shortcode used in the examples above:
|
This is the shortcode used in the examples above:
|
||||||
|
|
||||||
|
|
||||||
{{< code file="layouts/shortcodes/imgproc.html" >}}
|
{{< code file="layouts/shortcodes/imgproc.html" >}}
|
||||||
{{< readfile file="layouts/shortcodes/imgproc.html" >}}
|
{{< readfile file="layouts/shortcodes/imgproc.html" >}}
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
@ -219,7 +225,6 @@ And it is used like this:
|
||||||
{{</* imgproc sunset Resize "300x" /*/>}}
|
{{</* imgproc sunset Resize "300x" /*/>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
{{% note %}}
|
{{% note %}}
|
||||||
**Tip:** Note the self-closing shortcode syntax above. The `imgproc` shortcode can be called both with and without **inner content**.
|
**Tip:** Note the self-closing shortcode syntax above. The `imgproc` shortcode can be called both with and without **inner content**.
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
@ -281,10 +286,8 @@ By default, Hugo will use the [Smartcrop](https://github.com/muesli/smartcrop),
|
||||||
|
|
||||||
An example using the sunset image from above:
|
An example using the sunset image from above:
|
||||||
|
|
||||||
|
|
||||||
{{< imgproc sunset Fill "200x200 smart" />}}
|
{{< imgproc sunset Fill "200x200 smart" />}}
|
||||||
|
|
||||||
|
|
||||||
## Image Processing Performance Consideration
|
## Image Processing Performance Consideration
|
||||||
|
|
||||||
Processed images are stored below `<project-dir>/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.
|
Processed images are stored below `<project-dir>/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.
|
||||||
|
@ -297,10 +300,6 @@ To clean up, run:
|
||||||
hugo --gc
|
hugo --gc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
{{% note %}}
|
{{% note %}}
|
||||||
**GC** is short for **Garbage Collection**.
|
**GC** is short for **Garbage Collection**.
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ You can also put the returned value of the `where` clauses into a variable:
|
||||||
|
|
||||||
## Use `where` with `first`
|
## 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
|
powerful. Below snippet gets a list of posts only from [**main
|
||||||
sections**](#mainsections), sorts it using the [default
|
sections**](#mainsections), sorts it using the [default
|
||||||
ordering](/templates/lists/) for lists (i.e., `weight => date`), and
|
ordering](/templates/lists/) for lists (i.e., `weight => date`), and
|
||||||
|
|
|
@ -515,7 +515,7 @@ dir = ":cacheDir/modules"
|
||||||
maxAge = -1
|
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
|
### The keywords explained
|
||||||
|
|
||||||
|
|
|
@ -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.
|
From **Hugo 0.31** you can have multiple static directories.
|
||||||
{{% /note %}}
|
{{% /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/
|
[archetypes]: /content-management/archetypes/
|
||||||
[configuration directives]: /getting-started/configuration/#all-variables-yaml
|
[configuration directives]: /getting-started/configuration/#all-variables-yaml
|
||||||
|
|
BIN
docs/content/en/news/0.68.0-relnotes/hugo-68-featured.png
Normal file
BIN
docs/content/en/news/0.68.0-relnotes/hugo-68-featured.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
|
@ -1,8 +1,8 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
date: 2020-03-21
|
date: 2020-03-21
|
||||||
title: "0.68.0"
|
title: "Minify config and more!"
|
||||||
description: "0.68.0"
|
description: "Hugo 0.68.0 brings minify configuration and fully navigable headless sections."
|
||||||
categories: ["Releases"]
|
categories: ["Releases"]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
date: 2020-03-22
|
date: 2020-03-22
|
||||||
title: "Hugo 0.68.1: A couple of Bug Fixes"
|
title: "Hugo 0.68.1: 1 bug fix"
|
||||||
description: "This version fixes a couple of bugs introduced in 0.68.0."
|
description: "This release reverts a change in resources.ExecuteAsTemplate that broke some theme demos."
|
||||||
categories: ["Releases"]
|
categories: ["Releases"]
|
||||||
images:
|
images:
|
||||||
- images/blog/hugo-bug-poster.png
|
- images/blog/hugo-bug-poster.png
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
date: 2020-03-24
|
date: 2020-03-24T12:00:00-05:00
|
||||||
title: "Hugo 0.68.2: A couple of Bug Fixes"
|
title: "Hugo 0.68.2: A couple of Bug Fixes"
|
||||||
description: "This version fixes a couple of bugs introduced in 0.68.0."
|
description: "This version fixes a couple of bugs introduced in 0.68.0."
|
||||||
categories: ["Releases"]
|
categories: ["Releases"]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
date: 2020-03-24
|
date: 2020-03-24T13:00:00-05:00
|
||||||
title: "Hugo 0.68.3: A couple of Bug Fixes"
|
title: "Hugo 0.68.3: A couple of Bug Fixes"
|
||||||
description: "This version fixes a couple of bugs introduced in 0.68.0."
|
description: "This version fixes a couple of bugs introduced in 0.68.0."
|
||||||
categories: ["Releases"]
|
categories: ["Releases"]
|
||||||
|
|
|
@ -2,4 +2,4 @@ module github.com/gohugoio/hugoDocs
|
||||||
|
|
||||||
go 1.12
|
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
|
||||||
|
|
|
@ -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-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 h1:cS14MnUGS6xwWYfPNshimm8HdMCZiYBxWkCD0VnvgVw=
|
||||||
github.com/gohugoio/gohugoioTheme v0.0.0-20200128164921-1d0bc5482051/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
|
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=
|
||||||
|
|
|
@ -3,7 +3,7 @@ publish = "public"
|
||||||
command = "hugo --gc --minify"
|
command = "hugo --gc --minify"
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_VERSION = "0.67.1"
|
HUGO_VERSION = "0.68.3"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
|
|
||||||
|
@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true"
|
||||||
command = "hugo --gc --minify --enableGitInfo"
|
command = "hugo --gc --minify --enableGitInfo"
|
||||||
|
|
||||||
[context.split1.environment]
|
[context.split1.environment]
|
||||||
HUGO_VERSION = "0.67.1"
|
HUGO_VERSION = "0.68.3"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
|
|
||||||
[context.deploy-preview]
|
[context.deploy-preview]
|
||||||
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
|
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
[context.deploy-preview.environment]
|
[context.deploy-preview.environment]
|
||||||
HUGO_VERSION = "0.67.1"
|
HUGO_VERSION = "0.68.3"
|
||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
[context.branch-deploy.environment]
|
[context.branch-deploy.environment]
|
||||||
HUGO_VERSION = "0.67.1"
|
HUGO_VERSION = "0.68.3"
|
||||||
|
|
||||||
[context.next.environment]
|
[context.next.environment]
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
Loading…
Reference in a new issue