mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-19 15:04:41 -04:00
Add GH milestones to roadmap, and update Snap/Ubuntu in installing.md
This commit is contained in:
parent
48eaf43c0f
commit
a1c8d046f9
@ -13,13 +13,15 @@ aliases: [/meta/roadmap]
|
|||||||
toc: false
|
toc: false
|
||||||
---
|
---
|
||||||
|
|
||||||
In no particular order, here is what is currently being worked on for the Hugo project:
|
To track Hugo's progress, see our [GitHub Milestones][milestones].
|
||||||
|
|
||||||
|
In no particular order, here are some other features currently being worked on for the Hugo project:
|
||||||
|
|
||||||
* Intelligently related posts ({{< gh 98 >}})
|
* Intelligently related posts ({{< gh 98 >}})
|
||||||
* Even easier deployment to S3, SSH, GitHub, rsync. Give the [hosting and deployment][] section a shot.
|
* Even easier deployment to S3, SSH, GitHub, rsync. Give the [hosting and deployment][] section a shot.
|
||||||
* Import from other website systems. There are already [existing migration tools][migrate], but they don’t cover all major platforms.
|
* Import from other website systems. There are already [existing migration tools][migrate], but they don’t cover all major platforms.
|
||||||
* An interactive web-based editor (See the [related Discuss thread][])
|
* An interactive web-based editor (See the [related forum thread][])
|
||||||
* Additional [themes][], which are always ongoing and contributions are welcome!
|
* Additional [themes][], which are always ongoing and [contributions are welcome][themescontrib]!
|
||||||
* Dynamic image resizing via shortcodes ({{< gh 1014 >}})
|
* Dynamic image resizing via shortcodes ({{< gh 1014 >}})
|
||||||
* Native support for additional content formats (AsciiDoc {{< gh 1435>}}, reST {{< gh 1436 >}})
|
* Native support for additional content formats (AsciiDoc {{< gh 1435>}}, reST {{< gh 1436 >}})
|
||||||
* And, last but not least, [***your*** best ideas!][]
|
* And, last but not least, [***your*** best ideas!][]
|
||||||
@ -36,8 +38,10 @@ Feel free to [contribute to Hugo's development][devcontribute], [improve Hugo's
|
|||||||
[doccontribute]: /contribute/documentation/
|
[doccontribute]: /contribute/documentation/
|
||||||
[hosting and deployment]: /hosting-and-deployment/
|
[hosting and deployment]: /hosting-and-deployment/
|
||||||
[migrate]: /tools/migrations/
|
[migrate]: /tools/migrations/
|
||||||
|
[milestones]: https://github.com/spf13/hugo/milestone/14
|
||||||
[newissue]: https://github.com/spf13/hugo/issues/
|
[newissue]: https://github.com/spf13/hugo/issues/
|
||||||
[related Discuss thread]: https://discuss.gohugo.io/t/web-based-editor/155
|
[related forum thread]: https://discuss.gohugo.io/t/web-based-editor/155
|
||||||
[themes]: /themes/
|
[themes]: /themes/
|
||||||
|
[themescontrib]: /contribute/themes/
|
||||||
[tutorials]: /tutorials
|
[tutorials]: /tutorials
|
||||||
[***your*** best ideas!]: /contribute/
|
[***your*** best ideas!]: /contribute/
|
@ -31,7 +31,7 @@ tags = ["pizza","beer","hot dogs"]
|
|||||||
|
|
||||||
The following might be used as a partial within a [single page template][singletemplate]:
|
The following might be used as a partial within a [single page template][singletemplate]:
|
||||||
|
|
||||||
{{% code file="layouts/partials/content-header.html" %}}
|
{{% code file="layouts/partials/content-header.html" download="content-header.html" %}}
|
||||||
```html
|
```html
|
||||||
<header class="content-header">
|
<header class="content-header">
|
||||||
<h1>{{.Title}}</h1>
|
<h1>{{.Title}}</h1>
|
||||||
|
@ -11,7 +11,7 @@ tags: [filtering]
|
|||||||
signature:
|
signature:
|
||||||
workson: [lists,taxonomies,terms,groups]
|
workson: [lists,taxonomies,terms,groups]
|
||||||
hugoversion:
|
hugoversion:
|
||||||
relatedfuncs: [intersect,first]
|
relatedfuncs: [intersect,first,after,last]
|
||||||
deprecated: false
|
deprecated: false
|
||||||
toc: true
|
toc: true
|
||||||
needsexample: true
|
needsexample: true
|
||||||
@ -19,7 +19,7 @@ needsexample: true
|
|||||||
|
|
||||||
`where` filters an array to only the elements containing a matching value for a given field.
|
`where` filters an array to only the elements containing a matching value for a given field.
|
||||||
|
|
||||||
```golang
|
```html
|
||||||
{{ range where .Data.Pages "Section" "post" }}
|
{{ range where .Data.Pages "Section" "post" }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@ -33,7 +33,7 @@ series: golang
|
|||||||
+++
|
+++
|
||||||
```
|
```
|
||||||
|
|
||||||
```golang
|
```html
|
||||||
{{ range where .Site.Pages "Params.series" "golang" }}
|
{{ range where .Site.Pages "Params.series" "golang" }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@ -41,7 +41,7 @@ series: golang
|
|||||||
|
|
||||||
It can also be used with the logical operators `!=`, `>=`, `in`, etc. Without an operator, `where` compares a given field with a matching value equivalent to `=`.
|
It can also be used with the logical operators `!=`, `>=`, `in`, etc. Without an operator, `where` compares a given field with a matching value equivalent to `=`.
|
||||||
|
|
||||||
```golang
|
```html
|
||||||
{{ range where .Data.Pages "Section" "!=" "post" }}
|
{{ range where .Data.Pages "Section" "!=" "post" }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@ -114,7 +114,7 @@ The following grabs the first five content files in `post` using the [default or
|
|||||||
|
|
||||||
You can also nest `where` clauses to drill down on lists of content by more than one parameter. The following first grabs all pages in the "blog" section and then ranges through the result of the first `where` clause and finds all pages that are *not* featured:
|
You can also nest `where` clauses to drill down on lists of content by more than one parameter. The following first grabs all pages in the "blog" section and then ranges through the result of the first `where` clause and finds all pages that are *not* featured:
|
||||||
|
|
||||||
```
|
```html
|
||||||
{{ range where (where .Data.Pages "Section" "blog" ) ".Params.featured" "!=" "true" }}
|
{{ range where (where .Data.Pages "Section" "blog" ) ".Params.featured" "!=" "true" }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -418,7 +418,33 @@ C:\Hugo\Sites\example.com>dir
|
|||||||
|
|
||||||
## <i class="icon-linux"></i>Linux
|
## <i class="icon-linux"></i>Linux
|
||||||
|
|
||||||
### Installing From Snap
|
### Debian/Ubuntu and Arch
|
||||||
|
|
||||||
|
Hugo has been included in Debian and Ubuntu since 2016 and can be installed as a traditional `.deb` package via `apt`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo apt install hugo
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Pros
|
||||||
|
|
||||||
|
* Native Debian/Ubuntu package maintained by Debian Developers
|
||||||
|
* Pre-installed bash completion script and `man` pages
|
||||||
|
|
||||||
|
#### Cons
|
||||||
|
|
||||||
|
* Might not be the latest version, especially if you are using an older, stable version (e.g., Ubuntu 16.04 LTS). Until backports and PPA are available, you may consider installing the Hugo snap package to get the latest version of Hugo, as described below.
|
||||||
|
|
||||||
|
You can also install Hugo from the [Arch user repository](https://aur.archlinux.org/) on Arch Linux or derivatives such as Manjaro.
|
||||||
|
|
||||||
|
Be aware that Hugo is built from source. This means that additional tools like [Git](https://git-scm.com) and [Go](https://golang.org/doc/install) will be installed as well.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo pacman -S yaourt
|
||||||
|
yaourt -S hugo
|
||||||
|
```
|
||||||
|
|
||||||
|
### Installing Hugo as a Snap Package
|
||||||
|
|
||||||
In any of the [Linux distributions that support snaps](http://snapcraft.io/docs/core/install):
|
In any of the [Linux distributions that support snaps](http://snapcraft.io/docs/core/install):
|
||||||
|
|
||||||
@ -427,20 +453,9 @@ snap install hugo
|
|||||||
```
|
```
|
||||||
|
|
||||||
{{% note %}}
|
{{% note %}}
|
||||||
Snap Hugo users may get a `Resource temporarily unavailable` runtime error. This is because non-root users may only write inside two specific directories for most snaps. You can find a workaround using the `home` plug at [snapcraft.io](https://snapcraft.io/docs/reference/interfaces). More information is also available [in this related GitHub issue](https://github.com/spf13/hugo/issues/3143).
|
Hugo-as-a-snap can write only inside the user’s `$HOME `directory---and gvfs-mounted directories owned by the user---because of Snaps’ confinement and security model. More information is also available [in this related GitHub issue](https://github.com/spf13/hugo/issues/3143).
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
### Arch-based distributions
|
|
||||||
|
|
||||||
Install Hugo from the [Arch user repository](https://aur.archlinux.org/) on Arch Linux or derivatives like Manjaro.
|
|
||||||
|
|
||||||
Be aware that Hugo is built from source. This means that additional tools like [Git](https://git-scm.com) and [Go](https://golang.org/doc/install) will be installed as well.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo pacman -S yaourt
|
|
||||||
yaourt -S hugo
|
|
||||||
```
|
|
||||||
|
|
||||||
## Upgrading Hugo
|
## Upgrading Hugo
|
||||||
|
|
||||||
Upgrading Hugo is as easy as downloading and replacing the executable you’ve
|
Upgrading Hugo is as easy as downloading and replacing the executable you’ve
|
||||||
|
Loading…
x
Reference in New Issue
Block a user