Merge commit '26f1458a2df6b55eee3a5de46f5fec23a43a7c7d'
3
docs/.github/calibre/image-actions.yml
vendored
|
@ -1,3 +0,0 @@
|
||||||
ignorePaths:
|
|
||||||
- "resources/**"
|
|
||||||
- "_vendor/**"
|
|
|
@ -16,7 +16,7 @@ menu:
|
||||||
|
|
||||||
## The Image Page Resource
|
## The Image Page Resource
|
||||||
|
|
||||||
The `image` is a [Page Resource]({{< relref "/content-management/page-resources" >}}), and the processing methods listed below does not work on images inside your `/static` folder.
|
The `image` is a [Page Resource]({{< relref "/content-management/page-resources" >}}), and the processing methods listed below do not work on images inside your `/static` folder.
|
||||||
|
|
||||||
To get all images in a [Page Bundle]({{< relref "/content-management/organization#page-bundles" >}}):
|
To get all images in a [Page Bundle]({{< relref "/content-management/organization#page-bundles" >}}):
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 34 KiB |
|
@ -15,6 +15,8 @@ signature: [".RenderString MARKUP"]
|
||||||
|
|
||||||
`.RenderString` is a method on `Page` that renders some markup to HTML using the content renderer defined for that page (if not set in the options).
|
`.RenderString` is a method on `Page` that renders some markup to HTML using the content renderer defined for that page (if not set in the options).
|
||||||
|
|
||||||
|
*Note* that this method does not parse and render shortcodes.
|
||||||
|
|
||||||
The method takes an optional map argument with these options:
|
The method takes an optional map argument with these options:
|
||||||
|
|
||||||
display ("inline")
|
display ("inline")
|
||||||
|
@ -34,4 +36,4 @@ Some examples:
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
**Note** that this method is more powerful than the similar [markdownify](functions/markdownify/) function as it also supports [Render Hooks](/getting-started/configuration-markup/#markdown-render-hooks) and it has options to render other markup formats.
|
**Note** that this method is more powerful than the similar [markdownify](/functions/markdownify/) function as it also supports [Render Hooks](/getting-started/configuration-markup/#markdown-render-hooks) and it has options to render other markup formats.
|
||||||
|
|
|
@ -5,7 +5,7 @@ description: Looks up a content page by logical name.
|
||||||
godocref:
|
godocref:
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2019-12-28
|
||||||
categories: [functions]
|
categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
@ -29,6 +29,12 @@ aliases: []
|
||||||
`ref` looks up Hugo "Regular Pages" only. It can't be used for the homepage, section pages, etc.
|
`ref` looks up Hugo "Regular Pages" only. It can't be used for the homepage, section pages, etc.
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
|
It is also possible to pass additional arguments to link to another language or an alternative output format. Therefore, pass a map of arguments instead of just the path.
|
||||||
|
|
||||||
|
```
|
||||||
|
{{ ref . (dict "path" "about.md" "lang" "ja" "outputFormat" "rss") }}
|
||||||
|
```
|
||||||
|
|
||||||
These functions are used in two of Hugo's built-in shortcodes. You can see basic usage examples of both `ref` and `relref` in the [shortcode documentation](/content-management/shortcodes/#ref-and-relref).
|
These functions are used in two of Hugo's built-in shortcodes. You can see basic usage examples of both `ref` and `relref` in the [shortcode documentation](/content-management/shortcodes/#ref-and-relref).
|
||||||
|
|
||||||
For an extensive explanation of how to leverage `ref` and `relref` for content management, see [Cross References](/content-management/cross-references/).
|
For an extensive explanation of how to leverage `ref` and `relref` for content management, see [Cross References](/content-management/cross-references/).
|
||||||
|
|
|
@ -5,7 +5,7 @@ description: Looks up a content page by relative path.
|
||||||
godocref:
|
godocref:
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2019-12-28
|
||||||
categories: [functions]
|
categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
@ -29,6 +29,12 @@ aliases: []
|
||||||
`relref` looks up Hugo "Regular Pages" only. It can't be used for the homepage, section pages, etc.
|
`relref` looks up Hugo "Regular Pages" only. It can't be used for the homepage, section pages, etc.
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
|
It is also possible to pass additional arguments to link to another language or an alternative output format. Therefore, pass a map of arguments instead of just the path.
|
||||||
|
|
||||||
|
```
|
||||||
|
{{ relref . (dict "path" "about.md" "lang" "ja" "outputFormat" "rss") }}
|
||||||
|
```
|
||||||
|
|
||||||
These functions are used in two of Hugo's built-in shortcodes. You can see basic usage examples of both `ref` and `relref` in the [shortcode documentation](/content-management/shortcodes/#ref-and-relref).
|
These functions are used in two of Hugo's built-in shortcodes. You can see basic usage examples of both `ref` and `relref` in the [shortcode documentation](/content-management/shortcodes/#ref-and-relref).
|
||||||
|
|
||||||
For an extensive explanation of how to leverage `ref` and `relref` for content management, see [Cross References](/content-management/cross-references/).
|
For an extensive explanation of how to leverage `ref` and `relref` for content management, see [Cross References](/content-management/cross-references/).
|
||||||
|
|
|
@ -50,7 +50,7 @@ This partial would produce the following HTML output:
|
||||||
</ul>
|
</ul>
|
||||||
{{< /output >}}
|
{{< /output >}}
|
||||||
|
|
||||||
The odd output can be remedied by adding ` | safeURL` to our `.Title` page variable:
|
The odd output can be remedied by adding ` | safeURL` to our `.URL` page variable:
|
||||||
|
|
||||||
{{< code file="layouts/partials/correct-url-sidebar-menu.html" copy="false" >}}
|
{{< code file="layouts/partials/correct-url-sidebar-menu.html" copy="false" >}}
|
||||||
<!-- This unordered list may be part of a sidebar menu -->
|
<!-- This unordered list may be part of a sidebar menu -->
|
||||||
|
|
|
@ -84,14 +84,14 @@ Note that this is only supported with the [Goldmark](#goldmark) renderer.
|
||||||
|
|
||||||
These Render Hooks allow custom templates to render links and images from markdown.
|
These Render Hooks allow custom templates to render links and images from markdown.
|
||||||
|
|
||||||
You can do this by creating templates with base names `render-link` and/or `render-image` inside `layouts/_default`.
|
You can do this by creating templates with base names `render-link` and/or `render-image` inside `layouts/_default/_markup`.
|
||||||
|
|
||||||
You can define [Output Format](/templates/output-formats) and [language](/content-management/multilingual/) nspecific templates if needed.[^hooktemplate] Your `layouts` folder may look like this:
|
You can define [Output-Format-](/templates/output-formats) and [language-](/content-management/multilingual/)specific templates if needed.[^hooktemplate] Your `layouts` folder may look like this:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
layouts
|
layouts
|
||||||
└── _default
|
└── _default
|
||||||
└── markup
|
└── _markup
|
||||||
├── render-image.html
|
├── render-image.html
|
||||||
├── render-image.rss.xml
|
├── render-image.rss.xml
|
||||||
└── render-link.html
|
└── render-link.html
|
||||||
|
@ -122,7 +122,7 @@ Text
|
||||||
PlainText
|
PlainText
|
||||||
: The plain variant of the above.
|
: The plain variant of the above.
|
||||||
|
|
||||||
A Markdown example for a inline-style link with title:
|
A Markdown example for an inline-style link with title:
|
||||||
|
|
||||||
```md
|
```md
|
||||||
[Text](https://www.gohugo.io "Title")
|
[Text](https://www.gohugo.io "Title")
|
||||||
|
@ -130,11 +130,9 @@ A Markdown example for a inline-style link with title:
|
||||||
|
|
||||||
A very simple template example given the above:
|
A very simple template example given the above:
|
||||||
|
|
||||||
{{< code file="layouts/_default/render-link.html" >}}
|
{{< code file="layouts/_default/_markup/render-link.html" >}}
|
||||||
<a href="{{ .Destination | safeURL }}"{{ with .Title}}title="{{ . }}"{{ end }}>{{ .Text }}{{ with .Page }} (in page {{ .Title }}){{ end }}"</a>
|
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text }}</a>
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|
||||||
(look in the page bundle, inside `/assets` etc.) and [transform](/content-management/image-processing) images.
|
|
||||||
|
|
||||||
[^hooktemplate]: It's currently only possible to have one set of render hook templates, e.g. not per `Type` or `Section`. We may consider that in a future version.
|
[^hooktemplate]: It's currently only possible to have one set of render hook templates, e.g. not per `Type` or `Section`. We may consider that in a future version.
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 223 KiB After Width: | Height: | Size: 65 KiB |
|
@ -461,7 +461,7 @@ Hugo installed via Snap can write only inside the user’s `$HOME` directory---a
|
||||||
|
|
||||||
sudo apt-get install hugo
|
sudo apt-get install hugo
|
||||||
|
|
||||||
This installs the "extended" Sass/SCSS version.
|
What this installs depends on your Debian/Ubuntu version. On Ubuntu bionic (18.04), this installs the non-extended version without Sass/SCSS support. On Ubuntu disco (19.04), this installs the extended version with Sass/SCSS support.
|
||||||
|
|
||||||
This option is not recommended because the Hugo in Linux package managers for Debian and Ubuntu is usually a few versions behind as described [here](https://github.com/gcushen/hugo-academic/issues/703)
|
This option is not recommended because the Hugo in Linux package managers for Debian and Ubuntu is usually a few versions behind as described [here](https://github.com/gcushen/hugo-academic/issues/703)
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,6 @@ It is recommended to have [Git installed](https://git-scm.com/downloads) to run
|
||||||
For other approaches learning Hugo like book or a video tutorial refer to the [external learning resources](/getting-started/external-learning-resources/) page.
|
For other approaches learning Hugo like book or a video tutorial refer to the [external learning resources](/getting-started/external-learning-resources/) page.
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Step 1: Install Hugo
|
## Step 1: Install Hugo
|
||||||
|
|
||||||
{{% note %}}
|
{{% note %}}
|
||||||
|
@ -44,10 +42,8 @@ To verify your new install:
|
||||||
hugo version
|
hugo version
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
{{< asciicast ItACREbFgvJ0HjnSNeTknxWy9 >}}
|
{{< asciicast ItACREbFgvJ0HjnSNeTknxWy9 >}}
|
||||||
|
|
||||||
|
|
||||||
## Step 2: Create a New Site
|
## Step 2: Create a New Site
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -58,34 +54,33 @@ The above will create a new Hugo site in a folder named `quickstart`.
|
||||||
|
|
||||||
{{< asciicast 3mf1JGaN0AX0Z7j5kLGl3hSh8 >}}
|
{{< asciicast 3mf1JGaN0AX0Z7j5kLGl3hSh8 >}}
|
||||||
|
|
||||||
|
|
||||||
## Step 3: Add a Theme
|
## Step 3: Add a Theme
|
||||||
|
|
||||||
See [themes.gohugo.io](https://themes.gohugo.io/) for a list of themes to consider. This quickstart uses the beautiful [Ananke theme](https://themes.gohugo.io/gohugo-theme-ananke/).
|
See [themes.gohugo.io](https://themes.gohugo.io/) for a list of themes to consider. This quickstart uses the beautiful [Ananke theme](https://themes.gohugo.io/gohugo-theme-ananke/).
|
||||||
|
|
||||||
|
First, download the theme from Github and add it to your site's `theme` directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd quickstart
|
cd quickstart
|
||||||
|
|
||||||
# Download the theme
|
|
||||||
git init
|
git init
|
||||||
git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke
|
git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke
|
||||||
# Note for non-git users:
|
```
|
||||||
# - If you do not have git installed, you can download the archive of the latest
|
|
||||||
# version of this theme from:
|
|
||||||
# https://github.com/budparr/gohugo-theme-ananke/archive/master.zip
|
|
||||||
# - Extract that .zip file to get a "gohugo-theme-ananke-master" directory.
|
|
||||||
# - Rename that directory to "ananke", and move it into the "themes/" directory.
|
|
||||||
# End of note for non-git users.
|
|
||||||
|
|
||||||
# Edit your config.toml configuration file
|
*Note for non-git users:*
|
||||||
# and add the Ananke theme.
|
- If you do not have git installed, you can download the archive of the latest
|
||||||
|
version of this theme from:
|
||||||
|
https://github.com/budparr/gohugo-theme-ananke/archive/master.zip
|
||||||
|
- Extract that .zip file to get a "gohugo-theme-ananke-master" directory.
|
||||||
|
- Rename that directory to "ananke", and move it into the "themes/" directory.
|
||||||
|
|
||||||
|
Then, add the theme to the site configuration:
|
||||||
|
|
||||||
|
```bash
|
||||||
echo 'theme = "ananke"' >> config.toml
|
echo 'theme = "ananke"' >> config.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
{{< asciicast 7naKerRYUGVPj8kiDmdh5k5h9 >}}
|
{{< asciicast 7naKerRYUGVPj8kiDmdh5k5h9 >}}
|
||||||
|
|
||||||
|
|
||||||
## Step 4: Add Some Content
|
## Step 4: Add Some Content
|
||||||
|
|
||||||
You can manually create content files (for example as `content/<CATEGORY>/<FILE>.<FORMAT>`) and provide metadata in them, however you can use the `new` command to do few things for you (like add title and date):
|
You can manually create content files (for example as `content/<CATEGORY>/<FILE>.<FORMAT>`) and provide metadata in them, however you can use the `new` command to do few things for you (like add title and date):
|
||||||
|
@ -107,15 +102,12 @@ draft: true
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Step 5: Start the Hugo server
|
## Step 5: Start the Hugo server
|
||||||
|
|
||||||
Now, start the Hugo server with [drafts](/getting-started/usage/#draft-future-and-expired-content) enabled:
|
Now, start the Hugo server with [drafts](/getting-started/usage/#draft-future-and-expired-content) enabled:
|
||||||
|
|
||||||
{{< asciicast BvJBsF6egk9c163bMsObhuNXj >}}
|
{{< asciicast BvJBsF6egk9c163bMsObhuNXj >}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
▶ hugo server -D
|
▶ hugo server -D
|
||||||
|
|
||||||
|
@ -140,12 +132,10 @@ Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
|
||||||
Press Ctrl+C to stop
|
Press Ctrl+C to stop
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
**Navigate to your new site at [http://localhost:1313/](http://localhost:1313/).**
|
**Navigate to your new site at [http://localhost:1313/](http://localhost:1313/).**
|
||||||
|
|
||||||
Feel free to edit or add new content and simply refresh in browser to see changes quickly (You might need to force refresh in webbrowser, something like Ctrl-R usually works).
|
Feel free to edit or add new content and simply refresh in browser to see changes quickly (You might need to force refresh in webbrowser, something like Ctrl-R usually works).
|
||||||
|
|
||||||
|
|
||||||
## Step 6: Customize the Theme
|
## Step 6: Customize the Theme
|
||||||
|
|
||||||
Your new site already looks great, but you will want to tweak it a little before you release it to the public.
|
Your new site already looks great, but you will want to tweak it a little before you release it to the public.
|
||||||
|
@ -167,12 +157,10 @@ Replace the `title` above with something more personal. Also, if you already hav
|
||||||
**Tip:** Make the changes to the site configuration or any other file in your site while the Hugo server is running, and you will see the changes in the browser right away, though you may need to [clear your cache](https://kb.iu.edu/d/ahic).
|
**Tip:** Make the changes to the site configuration or any other file in your site while the Hugo server is running, and you will see the changes in the browser right away, though you may need to [clear your cache](https://kb.iu.edu/d/ahic).
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
|
|
||||||
For theme specific configuration options, see the [theme site](https://github.com/budparr/gohugo-theme-ananke).
|
For theme specific configuration options, see the [theme site](https://github.com/budparr/gohugo-theme-ananke).
|
||||||
|
|
||||||
**For further theme customization, see [Customize a Theme](/themes/customizing/).**
|
**For further theme customization, see [Customize a Theme](/themes/customizing/).**
|
||||||
|
|
||||||
|
|
||||||
### Step 7: Build static pages
|
### Step 7: Build static pages
|
||||||
|
|
||||||
It is simple. Just call:
|
It is simple. Just call:
|
||||||
|
|
|
@ -4,7 +4,7 @@ linktitle: Host on Render
|
||||||
description: Host your Hugo site for free with Render's global CDN, fully-managed SSL and auto deploys from GitHub.
|
description: Host your Hugo site for free with Render's global CDN, fully-managed SSL and auto deploys from GitHub.
|
||||||
date: 2019-06-06
|
date: 2019-06-06
|
||||||
publishdate: 2019-06-06
|
publishdate: 2019-06-06
|
||||||
lastmod: 2019-06-21
|
lastmod: 2020-01-01
|
||||||
categories: [hosting and deployment]
|
categories: [hosting and deployment]
|
||||||
keywords: [render,hosting,deployment]
|
keywords: [render,hosting,deployment]
|
||||||
authors: [Anurag Goel]
|
authors: [Anurag Goel]
|
||||||
|
@ -25,7 +25,7 @@ toc: true
|
||||||
|
|
||||||
Static sites are **completely free** on Render and include the following:
|
Static sites are **completely free** on Render and include the following:
|
||||||
|
|
||||||
- Continuous, automatic builds & deploys from GitHub.
|
- Continuous, automatic builds & deploys from [GitHub](https://render.com/docs/github) and [GitLab](https://render.com/docs/gitlab).
|
||||||
- Automatic SSL certificates through [Let's Encrypt](https://letsencrypt.org).
|
- Automatic SSL certificates through [Let's Encrypt](https://letsencrypt.org).
|
||||||
- Instant cache invalidation with a lightning fast, global CDN.
|
- Instant cache invalidation with a lightning fast, global CDN.
|
||||||
- Unlimited collaborators.
|
- Unlimited collaborators.
|
||||||
|
@ -38,7 +38,7 @@ Static sites are **completely free** on Render and include the following:
|
||||||
|
|
||||||
## Assumptions
|
## Assumptions
|
||||||
|
|
||||||
* You have an account with GitHub.
|
* You have an account with GitHub or GitLab.
|
||||||
* You have completed the [Quick Start][] or have a Hugo website you are ready to deploy and share with the world.
|
* You have completed the [Quick Start][] or have a Hugo website you are ready to deploy and share with the world.
|
||||||
* You have a Render account. You can sign up at https://render.com/register.
|
* You have a Render account. You can sign up at https://render.com/register.
|
||||||
|
|
||||||
|
@ -46,20 +46,20 @@ Static sites are **completely free** on Render and include the following:
|
||||||
|
|
||||||
You can set up a Hugo site on Render in two quick steps:
|
You can set up a Hugo site on Render in two quick steps:
|
||||||
|
|
||||||
1. Create a new **Web Service** on Render, and give Render permission to access your GitHub repo.
|
1. Create a new **Web Service** on Render, and give Render permission to access your GitHub/Gitlab repo.
|
||||||
2. Use the following values during creation:
|
2. Use the following values during creation:
|
||||||
|
|
||||||
Field | Value
|
Field | Value
|
||||||
------------------- | -------------------
|
------------------- | -------------------
|
||||||
**Environment** | `Static Site`
|
**Environment** | `Static Site`
|
||||||
**Build Command** | `hugo --gc --minify` (or our own build command)
|
**Build Command** | `hugo --gc --minify` (or your own build command)
|
||||||
**Publish Directory** | `public` (or your own output directory)
|
**Publish Directory** | `public` (or your own output directory)
|
||||||
|
|
||||||
That's it! Your site will be live on your Render URL (which looks like `yoursite.onrender.com`) as soon as the build is done.
|
That's it! Your site will be live on your Render URL (which looks like `yoursite.onrender.com`) as soon as the build is done.
|
||||||
|
|
||||||
## Continuous Deploys
|
## Continuous Deploys
|
||||||
|
|
||||||
Now that Render is connected to your repo, it will **automatically build and publish your site** any time you push to GitHub.
|
Now that Render is connected to your repo, it will **automatically build and publish your site** any time you push to your GitHub/Gitlab.
|
||||||
|
|
||||||
You can choose to disable auto deploys under the **Settings** section for your site and deploy it manually from the Render dashboard.
|
You can choose to disable auto deploys under the **Settings** section for your site and deploy it manually from the Render dashboard.
|
||||||
|
|
||||||
|
|
BIN
docs/content/en/news/0.62.0-relnotes/hugo-62-poster-featured.png
Normal file
After Width: | Height: | Size: 103 KiB |
|
@ -1,16 +1,16 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
date: 2019-12-23
|
date: 2019-12-23
|
||||||
title: "0.62.0"
|
title: "Hugo Christmas Edition!"
|
||||||
description: "0.62.0"
|
description: "Hugo 0.62 brings Markdown Render Hooks. And it's faster!"
|
||||||
categories: ["Releases"]
|
categories: ["Releases"]
|
||||||
---
|
---
|
||||||
|
|
||||||
From all of us to all of you, a **very Merry Christmas** -- and Hugo `0.56.0`! This version brings [Markdown Render Hooks](https://gohugo.io/getting-started/configuration-markup/#markdown-render-hooks). This gives you full control over how links and images in Markdown are rendered without using any shortcodes. With this, you can get Markdown links that work on both GitHub and Hugo, resize images etc. It is a very long sought after feature, that has been hard to tackle until we got [Goldmark](https://github.com/yuin/goldmark/), the new Markdown engine, by [@yuin](https://github.com/yuin). When you read up on this new feature in the documentation, also note the new [.RenderString](https://gohugo.io/renderstring/) method on `Page`.
|
From all of us to all of you, a **very Merry Christmas** -- and Hugo `0.62.0`! This version brings [Markdown Render Hooks](https://gohugo.io/getting-started/configuration-markup/#markdown-render-hooks). This gives you full control over how links and images in Markdown are rendered without using any shortcodes. With this, you can get Markdown links that work on both GitHub and Hugo, resize images etc. It is a very long sought after feature, that has been hard to tackle until we got [Goldmark](https://github.com/yuin/goldmark/), the new Markdown engine, by [@yuin](https://github.com/yuin). When you read up on this new feature in the documentation, also note the new [.RenderString](https://gohugo.io/functions/renderstring/) method on `Page`.
|
||||||
|
|
||||||
Adding these render hooks also had the nice side effect of making Hugo **faster and more memory** effective. We could have just added this feature on top of what we got, getting it to work. But you like Hugo's fast builds, you love instant browser-refreshes on change. So we had to take a step back and redesign how we detect "what changed?" for templates referenced from content files, either directly or indirectly. And by doing that we greatly simplified how we handle all the templates. Which accidentally makes this version **the fastest to date**. It's not an "every site will be much faster" statement. This depends. Sites with many languages and/or many templates will benefit more from this. We have benchmarks with site-building showing about 15% improvement in build speed and memory efficiency.
|
Adding these render hooks also had the nice side effect of making Hugo **faster and more memory effective**. We could have just added this feature on top of what we got, getting it to work. But you like Hugo's fast builds, you love instant browser-refreshes on change. So we had to take a step back and redesign how we detect "what changed?" for templates referenced from content files, either directly or indirectly. And by doing that we greatly simplified how we handle all the templates. Which accidentally makes this version **the fastest to date**. It's not an "every site will be much faster" statement. This depends. Sites with many languages and/or many templates will benefit more from this. We have benchmarks with site-building showing about 15% improvement in build speed and memory efficiency.
|
||||||
|
|
||||||
This release represents **25 contributions by 5 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 [@gavinhoward](https://github.com/gavinhoward), [@niklasfasching](https://github.com/niklasfasching), and [@zaitseff](https://github.com/zaitseff) 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 [@kaushalmodi](https://github.com/kaushalmodi) for his great work on the documentation site.
|
This release represents **25 contributions by 5 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 [@gavinhoward](https://github.com/gavinhoward), [@niklasfasching](https://github.com/niklasfasching), and [@zaitseff](https://github.com/zaitseff) 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 [@kaushalmodi](https://github.com/kaushalmodi) for his 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 **8 contributions by 5 contributors**. A special thanks to [@bep](https://github.com/bep), [@DirtyF](https://github.com/DirtyF), [@pfhawkins](https://github.com/pfhawkins), and [@bubelov](https://github.com/bubelov) for their 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 **8 contributions by 5 contributors**. A special thanks to [@bep](https://github.com/bep), [@DirtyF](https://github.com/DirtyF), [@pfhawkins](https://github.com/pfhawkins), and [@bubelov](https://github.com/bubelov) for their work on the documentation site.
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ Hugo now has:
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
* Ace and Amber support is now removed from Hugo. See [#6609](https://github.com/gohugoio/hugo/issues/6609) for more information.
|
* Ace and Amber support is now removed from Hugo. See [#6609](https://github.com/gohugoio/hugo/issues/6609) for more information.
|
||||||
* The `markdownify` template function does not, yet, support render hooks. We recommend you look at the new and more powerful [.RenderString](https://gohugo.io/renderstring/) method on `Page`.
|
* The `markdownify` template function does not, yet, support render hooks. We recommend you look at the new and more powerful [.RenderString](https://gohugo.io/functions/renderstring/) method on `Page`.
|
||||||
* If you have output format specific behaviour in a template used from a content file, you must create a output format specific template, e.g. `myshortcode.amp.html`. This also applies to the new rendering hooks introduced in this release. This has been the intended behaviour all the time, but a failing test (now fixed) shows that the implementation of this has not been as strict as specified, hence this note.
|
* If you have output format specific behaviour in a template used from a content file, you must create a output format specific template, e.g. `myshortcode.amp.html`. This also applies to the new rendering hooks introduced in this release. This has been the intended behaviour all the time, but a failing test (now fixed) shows that the implementation of this has not been as strict as specified, hence this note.
|
||||||
* The `errorf` does not return any value anymore. This means that the ERROR will just be printed to the console. We have also added a `warnf` template func.
|
* The `errorf` does not return any value anymore. This means that the ERROR will just be printed to the console. We have also added a `warnf` template func.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
date: 2020-01-01
|
date: 2020-01-01
|
||||||
title: "Hugo 0.62.1: A couple of Bug Fixes"
|
title: "Hugo 0.62.1: A couple of Bug Fixes"
|
||||||
|
@ -6,12 +5,9 @@ description: "This version fixes a couple of bugs introduced in 0.62.0."
|
||||||
categories: ["Releases"]
|
categories: ["Releases"]
|
||||||
images:
|
images:
|
||||||
- images/blog/hugo-bug-poster.png
|
- images/blog/hugo-bug-poster.png
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
This release is mainly motivated by getting [this demo site](https://github.com/bep/portable-hugo-links) up and running. It demonstrates truly portable Markdown links and images, whether browsed on GitHub or deployed as a Hugo site.
|
||||||
|
|
||||||
This is a bug-fix release with a couple of important fixes.
|
|
||||||
|
|
||||||
* Support files in content mounts [ff6253bc](https://github.com/gohugoio/hugo/commit/ff6253bc7cf745e9c0127ddc9006da3c2c00c738) [@bep](https://github.com/bep) [#6684](https://github.com/gohugoio/hugo/issues/6684)[#6696](https://github.com/gohugoio/hugo/issues/6696)
|
* Support files in content mounts [ff6253bc](https://github.com/gohugoio/hugo/commit/ff6253bc7cf745e9c0127ddc9006da3c2c00c738) [@bep](https://github.com/bep) [#6684](https://github.com/gohugoio/hugo/issues/6684)[#6696](https://github.com/gohugoio/hugo/issues/6696)
|
||||||
* Update alpine base image in Dockerfile to 3.11 [aa4ccb8a](https://github.com/gohugoio/hugo/commit/aa4ccb8a1e9b8aa17397acf34049a2aa16b0b6cb) [@RemcodM](https://github.com/RemcodM)
|
* Update alpine base image in Dockerfile to 3.11 [aa4ccb8a](https://github.com/gohugoio/hugo/commit/aa4ccb8a1e9b8aa17397acf34049a2aa16b0b6cb) [@RemcodM](https://github.com/RemcodM)
|
||||||
|
|
Before Width: | Height: | Size: 378 KiB After Width: | Height: | Size: 350 KiB |
Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 230 KiB After Width: | Height: | Size: 190 KiB |
Before Width: | Height: | Size: 791 KiB After Width: | Height: | Size: 752 KiB |
Before Width: | Height: | Size: 227 KiB After Width: | Height: | Size: 140 KiB |
|
@ -3,7 +3,7 @@ publish = "public"
|
||||||
command = "hugo --gc --minify"
|
command = "hugo --gc --minify"
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_VERSION = "0.61.0"
|
HUGO_VERSION = "0.62.1"
|
||||||
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.61.0"
|
HUGO_VERSION = "0.62.1"
|
||||||
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.61.0"
|
HUGO_VERSION = "0.62.1"
|
||||||
|
|
||||||
[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.61.0"
|
HUGO_VERSION = "0.62.1"
|
||||||
|
|
||||||
[context.next.environment]
|
[context.next.environment]
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
|
|
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 101 KiB |
BIN
docs/static/images/blog/sunset.jpg
vendored
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 90 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 156 KiB After Width: | Height: | Size: 122 KiB |
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 112 KiB |
Before Width: | Height: | Size: 208 KiB After Width: | Height: | Size: 116 KiB |
Before Width: | Height: | Size: 201 KiB After Width: | Height: | Size: 111 KiB |
BIN
docs/static/images/hugo-content-bundles.png
vendored
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 34 KiB |
BIN
docs/static/img/hugo-logo-med.png
vendored
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 17 KiB |
BIN
docs/static/img/hugo-logo.png
vendored
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 9.8 KiB |