Release 0.81.0
@@ -1,5 +1,25 @@
|
||||
defaultMarkdownHandler = "goldmark"
|
||||
|
||||
[goldmark]
|
||||
[goldmark.extensions]
|
||||
definitionList = true
|
||||
footnote = true
|
||||
linkify = true
|
||||
strikethrough = true
|
||||
table = true
|
||||
taskList = true
|
||||
typographer = true
|
||||
[goldmark.parser]
|
||||
autoHeadingID = true
|
||||
autoHeadingIDType = "github"
|
||||
[goldmark.parser.attribute]
|
||||
block = true
|
||||
title = true
|
||||
[goldmark.renderer]
|
||||
hardWraps = false
|
||||
unsafe = false
|
||||
xhtml = false
|
||||
|
||||
[highlight]
|
||||
style = "trac"
|
||||
lineNumbersInTable = true
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
Add some **general info** about Myshowcase here.
|
||||
|
||||
The site is built by:
|
||||
|
||||
* [Person 1](https://example.com)
|
||||
* [Person 1](https://example.com)
|
||||
|
||||
|
After Width: | Height: | Size: 40 KiB |
@@ -0,0 +1,37 @@
|
||||
---
|
||||
|
||||
title: Myshowcase
|
||||
date: 2021-01-14
|
||||
|
||||
description: "A short description of this page."
|
||||
|
||||
# The URL to the site on the internet.
|
||||
siteURL: https://gohugo.io/
|
||||
|
||||
# Link to the site's Hugo source code if public and you can/want to share.
|
||||
# Remove or leave blank if not needed/wanted.
|
||||
siteSource: https://github.com/gohugoio/hugoDocs
|
||||
|
||||
# Add credit to the article author. Leave blank or remove if not needed/wanted.
|
||||
byline: "[bep](https://github.com/bep), Hugo Lead"
|
||||
|
||||
---
|
||||
|
||||
To complete this showcase:
|
||||
|
||||
1. Write the story about your site in this file.
|
||||
2. Add a summary to the `bio.md` file in this folder.
|
||||
3. Replace the `featured-template.png` with a screenshot of your site. You can rename it, but it must contain the word `featured`.
|
||||
4. Create a new pull request in https://github.com/gohugoio/hugoDocs/pulls
|
||||
|
||||
The content of this bundle explained:
|
||||
|
||||
index.md
|
||||
: The main content file. Fill in required front matter metadata and write your story. I does not have to be a novel. It can even be self-promotional, but it should include Hugo in some form.
|
||||
|
||||
bio.md
|
||||
: A short summary of the website. Site credits (who built it) fits nicely here.
|
||||
|
||||
featured.png
|
||||
: A reasonably sized screenshot of your website. It can be named anything, but the name must start with "featured". The sample image is `1500x750` (2:1 aspect ratio).
|
||||
|
||||
|
After Width: | Height: | Size: 337 KiB |
@@ -1,19 +1,19 @@
|
||||
|
||||
---
|
||||
date: 2021-02-19
|
||||
title: "0.81.0"
|
||||
description: "0.81.0"
|
||||
title: "Hugo 0.81.0: The Smorgasbord Edition"
|
||||
description: "Attribute lists (e.g. CSS classes) for Markdown blocks, newlines in template actions/blocks, native Apple M1 ARM64 binary, it's faster, and more …"
|
||||
categories: ["Releases"]
|
||||
---
|
||||
|
||||
**Hugo 0.81.0** is the first release in this decade, it is the fastest to date, and it's packed with useful new features.
|
||||
**Hugo 0.81.0** is the first release in this decade, it is the fastest to date, and it's packed with useful new features.
|
||||
|
||||
## Newlines in Template Actions and Commands
|
||||
|
||||
You can now have newlines within template actions and pipelines. This means that you can now do this and similar:
|
||||
|
||||
```go-html-template
|
||||
FIX dict
|
||||
{{ dict
|
||||
"country" "Norway"
|
||||
"population" "5 millions"
|
||||
"language" "Norwegian"
|
||||
@@ -23,7 +23,7 @@ FIX dict
|
||||
"largest_city" "Oslo"
|
||||
"currency" "Norwegian krone"
|
||||
"dialing_code" "+47"
|
||||
FIX
|
||||
}}
|
||||
```
|
||||
|
||||
Note that the above construction will fail in Hugo versions < `0.81.0`.
|
||||
@@ -40,13 +40,11 @@ Hugo already supports adding attribute lists (e.g CSS classes) after titles. We
|
||||
|
||||
See [Configure Goldmark](https://gohugo.io/getting-started/configuration-markup#goldmark).
|
||||
|
||||
|
||||
## Performance
|
||||
|
||||
This release is the fastest Hugo to date, see details in the benchmarks below. This is [especially true](https://gohugo.io/news/hugo-macos-intel-vs-arm/) if you use the new ARM64 MacOS binary (only works on [Apple M1](https://en.wikipedia.org/wiki/Apple_M1) devices).
|
||||
|
||||
<details>
|
||||
<summary>Site Building and Rebuilding Benchmarks: v0.80.0 => v0.81.0 </summary>
|
||||
### Site Building and Rebuilding Benchmarks: v0.80.0 => v0.81.0
|
||||
|
||||
```
|
||||
name old time/op new time/op delta
|
||||
@@ -103,7 +101,8 @@ SiteNew/Regular_Many_HTML_templates-16 129k ± 0% 129k ± 0% +0.35
|
||||
SiteNew/Regular_Page_collections-16 199k ± 0% 200k ± 0% +0.55% (p=0.029 n=4+4)
|
||||
SiteNew/Regular_List_terms-16 53.5k ± 0% 53.4k ± 0% -0.18% (p=0.029 n=4+4)
|
||||
```
|
||||
</details>
|
||||
|
||||
|
||||
|
||||
## Native Arm Binary for Apple M1
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ publish = "public"
|
||||
command = "hugo --gc --minify"
|
||||
|
||||
[context.production.environment]
|
||||
HUGO_VERSION = "0.80.0"
|
||||
HUGO_VERSION = "0.81.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.80.0"
|
||||
HUGO_VERSION = "0.81.0"
|
||||
HUGO_ENV = "production"
|
||||
|
||||
[context.deploy-preview]
|
||||
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
|
||||
|
||||
[context.deploy-preview.environment]
|
||||
HUGO_VERSION = "0.80.0"
|
||||
HUGO_VERSION = "0.81.0"
|
||||
|
||||
[context.branch-deploy]
|
||||
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
||||
|
||||
[context.branch-deploy.environment]
|
||||
HUGO_VERSION = "0.80.0"
|
||||
HUGO_VERSION = "0.81.0"
|
||||
|
||||
[context.next.environment]
|
||||
HUGO_ENABLEGITINFO = "true"
|
||||
|
||||
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 335 KiB |
|
After Width: | Height: | Size: 65 KiB |