mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
Merge commit '53a352795a69a9d4a373f50ec62138595948c6ea'
This commit is contained in:
commit
0294a4a4f8
8 changed files with 11 additions and 11 deletions
|
@ -26,6 +26,6 @@ Another great site for Hugo themes is [jamstackthemes.dev/](https://jamstackthem
|
|||
|
||||
### Add Your Theme to the Repo
|
||||
|
||||
In order to add your Hugo theme to [themes.gohugo.io] please [open up a new issue in the theme repository](https://github.com/gohugoio/hugoThemes/issues/new?template=theme-submission.md). **Please make sure that you've read the theme submission guidelines in the [README](https://github.com/gohugoio/hugoThemes/blob/master/README.md#adding-a-theme-to-the-list) of the hugoThemes repository.**
|
||||
In order to add your Hugo theme to [themes.gohugo.io] please [open a pull request in the theme repository](https://github.com/gohugoio/hugoThemesSiteBuilder). **Please make sure that you've read the theme submission guidelines in the [README](https://github.com/gohugoio/hugoThemesSiteBuilder/blob/main/README.md#hugo-themes) of the hugoThemesSiteBuilder repository.**
|
||||
|
||||
[themes.gohugo.io]: https://themes.gohugo.io/
|
||||
|
|
|
@ -27,7 +27,7 @@ Any SASS or SCSS file can be transformed into a CSS file using `resources.ToCSS`
|
|||
|
||||
transpiler [string] {{< new-in "0.80.0" >}}
|
||||
|
||||
: The `transpiler` to use, valid values are `libsass` (default) and `dartsass`. Note that the Embedded Dart Sass project is still in beta (beta 5 at the time of writing). The release is scheduled for Q1 2021. We will try to improve the installation process by then, but if you want to use Hugo with Dart Sass you need to download a release binary from [Embedded Dart Sass](https://github.com/sass/dart-sass-embedded/releases) (Hugo after 0.81.0 requires beta 6 or newer) and make sure it's in your PC's `$PATH` (or `%PATH%` on Windows).
|
||||
: The `transpiler` to use, valid values are `libsass` (default) and `dartsass`. Note that the Embedded Dart Sass project is still in beta. We will try to improve the installation process when it has stable releases, but if you want to use Hugo with Dart Sass you need to download a release binary from [Embedded Dart Sass](https://github.com/sass/dart-sass-embedded/releases) (Hugo after 0.81.0 requires beta 6 or newer) and make sure it's in your PC's `$PATH` (or `%PATH%` on Windows).
|
||||
|
||||
targetPath [string]
|
||||
: If not set, the resource's target path will be the asset file original path with its extension replaced by `.css`.
|
||||
|
|
|
@ -8,7 +8,7 @@ categories: ["Releases"]
|
|||
|
||||
Hugo `0.42` adds **Theme Components**. This is a really powerful new way of building your Hugo sites with reusable components. This is both **Theme Composition** and **Theme Inheritance**.
|
||||
|
||||
>Read more about Theme Components in the [Hugo Documentation](https://gohugo.io/themes/theme-components/).
|
||||
>Read more about Theme Components in the [Hugo Documentation](https://gohugo.io/hugo-modules/theme-components/).
|
||||
|
||||
The feature above was implemented by [@bep](https://github.com/bep), the funny Norwegian, with great design help from the Hugo community. But that implementation would not have been possible without [Afero](https://github.com/spf13/afero), [Steve Francia's](https://github.com/spf13) virtual file system. Hugo is built on top of Afero and many other fast and solid Go projects, and if you look at the combined contribution log of the Hugo project and its many open source dependencies, the total amount of contributions is staggering. A big thank you to them all!
|
||||
|
||||
|
|
BIN
docs/content/en/news/0.85.0-relnotes/featured.png
Normal file
BIN
docs/content/en/news/0.85.0-relnotes/featured.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
|
@ -1,12 +1,12 @@
|
|||
|
||||
---
|
||||
date: 2021-07-05
|
||||
title: "0.85.0"
|
||||
description: "0.85.0"
|
||||
title: "Poll based watching"
|
||||
description: "Hugo 0.85.0: Polled based alternative when watching for changes and some other nice improvements."
|
||||
categories: ["Releases"]
|
||||
---
|
||||
|
||||
Hugo `0.85.0` is on the smaller side of releases, but the main new thing it brings should be important to those who need it: Poll based polling when watching the filesystem for changes.
|
||||
Hugo `0.85.0` is on the smaller side of releases, but the main new thing it brings should be important to those who need it: Poll based watching the filesystem for changes.
|
||||
|
||||
Hugo uses [Fsnotify](https://github.com/fsnotify/fsnotify) to provide native file system notifications. This is still the default, but there may situations where this isn't working. The file may not support it (e.g. NFS), or you get the "too many open files" error and cannot or do not want to increase the `ulimit`. Enable polling by passing the `--poll` flag with an interval:
|
||||
|
||||
|
@ -14,7 +14,7 @@ Hugo uses [Fsnotify](https://github.com/fsnotify/fsnotify) to provide native fil
|
|||
hugo server --poll 700ms
|
||||
```
|
||||
|
||||
You van even do "long polling" by passing a long interval:
|
||||
You can even do "long polling" by passing a long interval:
|
||||
|
||||
```bash
|
||||
hugo server --poll 24h
|
||||
|
|
|
@ -3,7 +3,7 @@ publish = "public"
|
|||
command = "hugo --gc --minify"
|
||||
|
||||
[context.production.environment]
|
||||
HUGO_VERSION = "0.84.4"
|
||||
HUGO_VERSION = "0.85.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.84.4"
|
||||
HUGO_VERSION = "0.85.0"
|
||||
HUGO_ENV = "production"
|
||||
|
||||
[context.deploy-preview]
|
||||
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
|
||||
|
||||
[context.deploy-preview.environment]
|
||||
HUGO_VERSION = "0.84.4"
|
||||
HUGO_VERSION = "0.85.0"
|
||||
|
||||
[context.branch-deploy]
|
||||
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
||||
|
||||
[context.branch-deploy.environment]
|
||||
HUGO_VERSION = "0.84.4"
|
||||
HUGO_VERSION = "0.85.0"
|
||||
|
||||
[context.next.environment]
|
||||
HUGO_ENABLEGITINFO = "true"
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
Loading…
Reference in a new issue