Merge commit '8b73644d81a81e82851b7f7c90aa8ab5524fbe93'

This commit is contained in:
Bjørn Erik Pedersen 2019-04-09 23:59:59 +02:00
commit cc98fc8ad2
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
25 changed files with 31 additions and 26 deletions

1
docs/.gitignore vendored
View file

@ -2,3 +2,4 @@
/public
nohup.out
.DS_Store
trace.out

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View file

@ -1,12 +1,12 @@
---
date: 2019-04-08
title: "0.55.0"
description: "0.55.0"
title: "Hugo 0.55.0: The early Easter Egg Edition!"
description: "Faster, virtualized Output Formats, revised shortcodes, new return keyword, and much more …"
categories: ["Releases"]
---
Hugo `0.55` is **the early Easter Egg Edition** with lots of great improvements and fixes. The original motivation for this release was to prepare for [Issue #5074](https://github.com/gohugoio/hugo/issues/5074), but the structural changes needed for that paved the way for lots of others. Please study the list of changes below, and especially the **Notes** section, but some headlines include:
Hugo `0.55` is **the early Easter Egg Edition** with lots of great improvements and fixes. The original motivation for this release was to prepare for [Issue #5074](https://github.com/gohugoio/hugo/issues/5074), but the structural changes needed for that paved the way for lots of others. Please study the list of changes below, and especially the **Notes** section, but some headlines include:
## Virtualized Output Formats
@ -20,7 +20,7 @@ We have now also added a new `Permalinkable` configuration attribute, which is e
## Shortcodes Revised
Shortcodes using the `{{%` as the outer-most delimiter will now be fully rendered when sent to the content renderer (e.g. Blackfriday for Markdown), meaning they can be part of the generated table of contents, footnotes, etc.
Shortcodes using the `{{%/* */%}}` as the outer-most delimiter will now be fully rendered when sent to the content renderer (e.g. Blackfriday for Markdown), meaning they can be part of the generated table of contents, footnotes, etc.
If you want the old behavior, you can put the following line in the start of your shortcode template:
@ -28,7 +28,7 @@ If you want the old behavior, you can put the following line in the start of you
{{ $_hugo_config := `{ "version": 1 }` }}
```
But using the `{{<` delimiter will, in most cases, be a better alternative, possibly in combination with the `markdownify` template func.
But using the `{{</* */>}}` delimiter will, in most cases, be a better alternative, possibly in combination with the `markdownify` template func.
See [#5763](https://github.com/gohugoio/hugo/issues/5763).
@ -65,8 +65,6 @@ The taxonomy nodes now have a `.Page` accessor which makes it much simpler to ge
See [#5719](https://github.com/gohugoio/hugo/issues/5719).
## And it's Faster!
This version is also the **fastest to date**. A site building benchmark shows more than 10% decrease in both build time and memory consumption, but that depends on the site. Its quite a challenge to consistently add significant new functionality and simultaneously improve performance. Also, note that we are now more honest about build times reported (`Total in 1234 ms`). We now do all initialization in the `Build` step, so you may get a higher time reported if you, as an example, have `--enableGitInfo` enabled, which now is included in the reported time.

View file

@ -43,7 +43,7 @@ Also see this Twitter thread:
Yes you can! Read [this](/hosting-and-deployment/hosting-on-netlify/#configure-hugo-version-in-netlify).
## I get "this feature is not available in your current Hugo version"
## I get "TOCSS ... this feature is not available in your current Hugo version"
If you process `SCSS` or `SASS` to `CSS` in your Hugo project, you need the Hugo `extended` version, or else you may see this error message:

View file

@ -1,3 +1,4 @@
{{ $_hugo_config := `{ "version": 1 }` }}
<aside class="admonition note">
<div class="note-icon">
{{partial "svg/exclamation.svg" (dict "size" "20px" ) }}

View file

@ -1,3 +1,4 @@
{{ $_hugo_config := `{ "version": 1 }` }}
<aside class="admonition tip">
<div class="tip-icon">
{{partial "svg/exclamation.svg" .}}

View file

@ -1,3 +1,4 @@
{{ $_hugo_config := `{ "version": 1 }` }}
<aside class="admonition warning">
<div class="admonition-icon">
{{partial "svg/exclamation.svg" .}}

View file

@ -3,7 +3,7 @@ publish = "public"
command = "hugo --gc --minify"
[context.production.environment]
HUGO_VERSION = "0.54.0"
HUGO_VERSION = "0.55.0"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true"
command = "hugo --gc --minify --enableGitInfo"
[context.split1.environment]
HUGO_VERSION = "0.54.0"
HUGO_VERSION = "0.55.0"
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.54.0"
HUGO_VERSION = "0.55.0"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.54.0"
HUGO_VERSION = "0.55.0"
[context.next.environment]
HUGO_ENABLEGITINFO = "true"

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
{"Target":"output/css/app.min.7b23725c013f7650fd9e3f14b7f6b0bc02f71e14088ecd41bbe57661163fbcbb.css","MediaType":"text/css","Data":{"Integrity":"sha256-eyNyXAE/dlD9nj8Ut/awvAL3HhQIjs1Bu+V2YRY/vLs="}}
{"Target":"output/css/app.min.2ac9b5935f7ff7709fe13c2b042a4a2d49fa96fb508e3e8870019ee9b72cf329.css","MediaType":"text/css","Data":{"Integrity":"sha256-Ksm1k19/93Cf4TwrBCpKLUn6lvtQjj6IcAGe6bcs8yk="}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View file

@ -12,7 +12,7 @@
<title>{{ block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
<meta name="viewport" content="width=device-width,minimum-scale=1">
{{ .Hugo.Generator }}
{{ hugo.Generator }}
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">

View file

@ -1,5 +1,5 @@
{{ define "main" }}
{{ $currentPageUrl := .URL }}
{{ $currentPageUrl := .RelPermalink }}
<article class="cf ph4 pv3 pv5-ns">
<!-- header spans the full width -->
@ -13,7 +13,7 @@
{{end}}
<h1 class="lh-title fw9 mb7 mv0 pt3">
<a href="{{ .URL }}" class="link primary-color dim">
<a href="{{ .RelPermalink }}" class="link primary-color dim">
{{ .Title }}
</a>
</h1>
@ -66,9 +66,9 @@
<ul class="list dib nested-links ml0 pl0">
<li class="dib mb2 mr2">Related:</li>
{{ range $tags.Pages }}
{{ if ne .URL $currentPageUrl }}
{{ if ne .RelPermalink $currentPageUrl }}
<li class="mb2 mr3">
<a href="{{ .URL }}" class="link">
<a href="{{ .RelPermalink }}" class="link">
{{ .LinkTitle }}
</a>
</li>

View file

@ -8,7 +8,7 @@
{{ end }}
<h1 class="near-black f3">
<a href="{{ .context.URL }}" class="link primary-color dim">
<a href="{{ .context.RelPermalink }}" class="link primary-color dim">
{{- if eq .context.Section "functions" -}}
{{ .context.LinkTitle }}
{{- else -}}

View file

@ -6,7 +6,7 @@
{{ range first 4 ( sort (where .Pages "Section" "news") "Date" "desc" ) }}
<!-- only show 2 boxes on mobile -->
{{ $.Scratch.Add "i" 1 }}{{ $i := $.Scratch.Get "i" }}
<a href="{{ .URL }}" class="link lh-copy light-gray f6 w-100 w-50-m w-25-l bg-animate hover-bg-accent-color hover-white pv3 pv4-ns ph3 ph4-ns{{ if ge $i 3 }} dn dib-l{{ else }} dib{{ end }}">
<a href="{{ .RelPermalink }}" class="link lh-copy light-gray f6 w-100 w-50-m w-25-l bg-animate hover-bg-accent-color hover-white pv3 pv4-ns ph3 ph4-ns{{ if ge $i 3 }} dn dib-l{{ else }} dib{{ end }}">
<span class="f6 gray pb1 db">
{{ .Date.Format "January 2, 2006" }}
</span>

View file

@ -2,7 +2,7 @@
<div class="bg-white mb3 pa4 gray overflow-hidden">
<span class="f6 db">{{ humanize .Section }}</span>
<h1 class="f3 near-black">
<a href="{{ .URL }}" class="link black dim">
<a href="{{ .RelPermalink }}" class="link black dim">
{{ .Title }}
</a>
</h1>

View file

@ -1,5 +1,5 @@
{{ $currentPage := . }}
{{ $currentURL := .URL }}
{{ $currentURL := .RelPermalink }}
<header class="ph4 flex pv4 bg-light-gray">
<ul class="list ma0 pa0 ">
<!-- TODO: Active classes -->

View file

@ -1,4 +1,4 @@
{{ $currentPageUrl := .URL }}
{{ $currentPageUrl := .RelPermalink }}
{{ if and .Params.tags .Site.Taxonomies.tags }}
{{ $name := index .Params.tags 0 }}
{{ $name := $name | urlize }}
@ -24,9 +24,9 @@
Related entries:
</li>
{{ end }}
{{ if ne .URL $currentPageUrl }}
{{ if ne .RelPermalink $currentPageUrl }}
<li class="db dib-l mb2 mr3">
<a href="{{ .URL }}" class="link">
<a href="{{ .RelPermalink }}" class="link">
{{ .LinkTitle }}
</a>
</li>

View file

@ -1,3 +1,4 @@
{{ $_hugo_config := `{ "version": 1 }` }}
<aside class="admonition note">
<div class="note-icon">
{{partial "svg/exclamation.svg" (dict "size" "20px" ) }}

View file

@ -1,3 +1,4 @@
{{ $_hugo_config := `{ "version": 1 }` }}
<aside class="admonition tip">
<div class="tip-icon">
{{partial "svg/exclamation.svg" .}}

View file

@ -1,3 +1,4 @@
{{ $_hugo_config := `{ "version": 1 }` }}
<aside class="admonition warning">
<div class="admonition-icon">
{{partial "svg/exclamation.svg" .}}